From e3583f75ca49c8a746689644563c65f40236c23b Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 20 Feb 2017 16:40:58 +0800 Subject: Add test cases --- examples/open.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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({ open: false, }; }, + setOpen({ open }) { + this.setState({ open }); + }, toggleOpen() { this.setState({ open: !this.state.open, }); }, - setOpen({ open }) { - this.setState({ open }); - }, render() { return (
-- cgit v1.2.3