Skip to content

Commit

Permalink
Fix checkbox example
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Dec 2, 2015
1 parent 7619c05 commit e291120
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class TestCheckbox extends React.Component {
check2: false
};

handleChange = (field) => {
this.setState({ [key]: value });
handleChange = (field, value) => {
this.setState({...this.state, [field]: value});
};

render () {
Expand Down

0 comments on commit e291120

Please sign in to comment.