Skip to content

Commit aaddcb9

Browse files
authored
Merge pull request #14 from topheman/patch-1
docs(README): fix typo
2 parents f3744b4 + bb6127c commit aaddcb9

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
@@ -14,7 +14,7 @@ npm install html-to-draftjs --save
1414
import { EditorState, ContentState } from 'draft-js';
1515
import htmlToDraft from 'html-to-draftjs';
1616
17-
const blocksFromHTML = htmlToDraft(this.props.content);
17+
const blocksFromHtml = htmlToDraft(this.props.content);
1818
const contentBlocks = blocksFromHtml.contentBlocks;
1919
const contentState = ContentState.createFromBlockArray(contentBlocks);
2020
const editorState = EditorState.createWithContent(contentState);

0 commit comments

Comments
 (0)