Permalink
Browse files

add onChange method

  • Loading branch information...
juliankrispel committed Jun 16, 2017
1 parent f0eb7a9 commit 7c7e299952ff6a2c91cd77b3ad3e941a6c1cc72d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/App.js
View
@@ -9,10 +9,15 @@ class App extends Component {
};
}
onChange = (editorState) => {
this.setState({ editorState });
};
render() {
return (
<Editor
editorState={this.state.editorState}
onChange={this.onChange}
/>
);
}

0 comments on commit 7c7e299

Please sign in to comment.