Skip to content

Commit bb6127c

Browse files
authored
docs(README): fix typo
1 parent f3744b4 commit bb6127c

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)