title: Render a component multiple times React.js
body: <p>This is a code for a simple counter.</p>
  
  <p>However, when i Render the view i don't get any output. Please tell me what is wrong with the code.</p>
  
  <p>The button is pressed and a counter is incremented and is rendered onto the screen.</p>
  
  <pre><code> var Title = React.createClass({
  
    getInitialState : function(){
      return {count:0};
    },
    increment : function(){
  
      this.setState({count:this.state.count+this.props.incVal});
    },
    render: function() {
      return (
        &lt;div&gt;
          &lt;h1 &gt;Count : {this.state.count}&lt; /h1&gt;
          &lt;button onClick={this.increment} &gt;Increment&lt;/button&gt;
        &lt;/div&gt;
      );
    }
  });
  
  
  
  
  var MultiButton = React.createClass({
    render : function (){
      return(
        &lt;Title incVal={1}/&gt;
        &lt;Title incVal={5}/&gt;
      );
    }
  });
  
  ReactDOM.render( &lt;MultiButton /&gt; ,
    document.getElementById('example')
  );
  </code></pre>