diff --git a/docs/Overview.md b/docs/Overview.md index dedc133b89..e24e9d616e 100644 --- a/docs/Overview.md +++ b/docs/Overview.md @@ -73,7 +73,7 @@ import {Editor, EditorState} from 'draft-js'; function MyEditor() { const [editorState, setEditorState] = React.useState( - EditorState.createEmpty(), + () => EditorState.createEmpty(), ); return ;