This is a code for a simple counter.
However, when i Render the view i don\'t get any output. Please tell me what is wrong with the code.
The button is press
var Title = React.createClass({
getInitialState : function(){
return {count:0};
},
increment : function(){
this.setState({count:this.state.count+this.props.incVal});
},
render: function() {
return (
Count : {this.state.count}< /h1>
);
}
});
var MultiButton = React.createClass({
render : function (){
return(
);
}
});
ReactDOM.render( ,
document.getElementById('example')
);