title: ReactJS State not getting updated
body: <p>I am updating a state from child.</p>
  
  <pre><code>getInitialState : function(){
          return{
              VotedForTopic : false
  
          };
      },
  
  updateVotedState:function(){
          this.setState({VotedForTopic:true});
          console.log(this.state.VotedForTopic)
      },
  </code></pre>
  
  <p>I am calling updateVotedState from the child when some action is performed to change the VotedForTopic state to true.But the state is not getting updated it remains false.
  What could be the problem</p>