Skip to content

Commit

Permalink
Add onSubmit function to the sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad authored Jul 25, 2018
1 parent 80fc45f commit 32714ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class EurekaDemo extends Component {
formSubmitted: false
};
}

_onSubmit = () => this.setState({...this.state, formSubmitted: true})

render() {
const { formSubmitted, values } = this.state;
Expand Down

0 comments on commit 32714ae

Please sign in to comment.