diff --git a/README.md b/README.md index adc68b1..75ae93d 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ const plugins = [createMarkdownShortcutsPlugin()]; export default class DemoEditor extends Component { constructor(props) { super(props); - state = { + this.state = { editorState: EditorState.createEmpty(), }; }