Skip to content

Commit b3f1b2d

Browse files
authored
Updated README.md
Fixed example usage
1 parent 420032f commit b3f1b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { EditorState, ContentState } from 'draft-js';
1515
import htmlToDraft from 'html-to-draftjs';
1616
1717
const blocksFromHtml = htmlToDraft(this.props.content);
18-
const { contentBlocks, entityMap } = blocksFromHtml.contentBlock;
18+
const { contentBlocks, entityMap } = blocksFromHtml;
1919
const contentState = ContentState.createFromBlockArray(contentBlocks, entityMap);
2020
const editorState = EditorState.createWithContent(contentState);
2121
```

0 commit comments

Comments
 (0)