diff --git a/sample/__tests__/components/DraftJsText.test.js b/sample/__tests__/components/DraftJsText.test.js
index a809b72..54d3a43 100644
--- a/sample/__tests__/components/DraftJsText.test.js
+++ b/sample/__tests__/components/DraftJsText.test.js
@@ -115,3 +115,16 @@ it('renders text-align: center', () => {
/>).toJSON();
expect(tree).toMatchSnapshot();
});
+
+it('renders empty blocks', () => {
+ const text = '';
+ const tree = renderer.create().toJSON();
+ expect(tree).toMatchSnapshot();
+});
diff --git a/sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap b/sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap
index 744a24d..b7d2b0b 100644
--- a/sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap
+++ b/sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap
@@ -62,6 +62,25 @@ exports[`renders correctly with a text 1`] = `
`;
+exports[`renders empty blocks 1`] = `
+
+
+
+`;
+
exports[`renders null without a text 1`] = `null`;
exports[`renders text-align: center 1`] = `
diff --git a/src/components/DraftJsText.js b/src/components/DraftJsText.js
index 79d0c8c..f06bdb1 100644
--- a/src/components/DraftJsText.js
+++ b/src/components/DraftJsText.js
@@ -15,10 +15,10 @@ import defaultStyles from './defaultStyles';
import type { DraftJsTextPropsType } from './types';
const DraftJsText = (props: DraftJsTextPropsType): any => {
- const { text } = props;
+ const { text, renderEmptyBlocks } = props;
let textElements = text;
- if (textElements) {
+ if (textElements || renderEmptyBlocks) {
textElements = loadAttributes({
text: props.text,
customStyles: props.customStyles,
diff --git a/src/components/types.js b/src/components/types.js
index 757de7e..c90e2ae 100644
--- a/src/components/types.js
+++ b/src/components/types.js
@@ -15,6 +15,7 @@ export type BlockQuotePropsType = {
entityRanges: Array