Skip to content

Commit 85beecb

Browse files
committed
cleanup examples
1 parent 3bf3d68 commit 85beecb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/webpack.*
2+
examples

examples/conditional/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const App = React.createClass({
1212
},
1313

1414
handleCheckClicked(e) {
15-
const state = {};
16-
state[e.target.name] = e.target.checked;
17-
this.setState(state);
15+
this.setState({
16+
[e.target.name]: e.target.checked,
17+
});
1818
},
1919

2020
render() {

0 commit comments

Comments
 (0)