mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
11 lines
268 B
Plaintext
11 lines
268 B
Plaintext
var <%= name %> = React.createClass({
|
|
getInitialState: function () {
|
|
return {open: false};
|
|
},
|
|
toggle: function() {
|
|
this.setState({open: !this.state.open});
|
|
},
|
|
render: function () {
|
|
return <%= name %>RT.apply(this);
|
|
}
|
|
}); |