script
var MyComponent = createReactClass({
getInitialState: function() {
return { count: 0 };
},
handleClick: function() {
this.setState({ count: this.state.count + 1 });
},
render: function() {
return (
<div>
</div>
);
}
});
ReactDOM.render(<MyComponent />, document.getElementById('root'));