Skip to content
Permalink
Browse files
add onChange method
  • Loading branch information
Julian Krispel-Samsel committed Jun 16, 2017
1 parent f0eb7a9 commit 7c7e299952ff6a2c91cd77b3ad3e941a6c1cc72d
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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.