diff options
Diffstat (limited to 'examples/open.js')
-rw-r--r-- | examples/open.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/open.js b/examples/open.js index 5a0d1ed..100bf35 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -12,14 +12,14 @@ const App = React.createClass({ | |||
12 | open: false, | 12 | open: false, |
13 | }; | 13 | }; |
14 | }, | 14 | }, |
15 | setOpen({ open }) { | ||
16 | this.setState({ open }); | ||
17 | }, | ||
15 | toggleOpen() { | 18 | toggleOpen() { |
16 | this.setState({ | 19 | this.setState({ |
17 | open: !this.state.open, | 20 | open: !this.state.open, |
18 | }); | 21 | }); |
19 | }, | 22 | }, |
20 | setOpen({ open }) { | ||
21 | this.setState({ open }); | ||
22 | }, | ||
23 | render() { | 23 | render() { |
24 | return ( | 24 | return ( |
25 | <div> | 25 | <div> |