Skip to content

Commit

Permalink
add onChange method
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Krispel-Samsel committed Jun 16, 2017
1 parent f0eb7a9 commit 7c7e299
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ class App extends Component {
}; };
} }


onChange = (editorState) => {
this.setState({ editorState });
};

render() { render() {
return ( return (
<Editor <Editor
editorState={this.state.editorState} editorState={this.state.editorState}
onChange={this.onChange}
/> />
); );
} }
Expand Down

0 comments on commit 7c7e299

Please sign in to comment.