Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 6394bd4

Browse files
authored
Update Overview.md
There is no need to create an extra function just for updating the state.
1 parent ceaeebf commit 6394bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function MyEditor() {
8181
return (
8282
<Editor
8383
editorState={editorState}
84-
onChange={editorState => setEditorState(editorState)}
84+
onChange={setEditorState}
8585
/>
8686
);
8787
}

0 commit comments

Comments
 (0)