Skip to content

Commit

Permalink
cleanup examples
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Sep 15, 2016
1 parent 3bf3d68 commit 85beecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/webpack.*
examples
6 changes: 3 additions & 3 deletions examples/conditional/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const App = React.createClass({
},

handleCheckClicked(e) {
const state = {};
state[e.target.name] = e.target.checked;
this.setState(state);
this.setState({
[e.target.name]: e.target.checked,
});
},

render() {
Expand Down

0 comments on commit 85beecb

Please sign in to comment.