title: Why is value in console log not showing in ReactJS
body: <p>I have a react app where console.log not showing the values in it but it displays the message.
  eg,</p>
  
  <pre><code>class Sample extends Component {
    constructor() {
      super()
      this.handleSubmit = this.handleSubmit.bind(this);
          this.state = {
                           msg:"Hi"
                       }}
   handleSubmit(event) {
      console.log("Message",this.state.msg);
  }
  
  
  render() {
  
        return(
          &lt;div &gt;
          &lt;RaisedButton label="Save" onClick={this.handleSubmit}/&gt;
          &lt;/div&gt;
        );
      }}
  </code></pre>
  
  <p>Not only state values but
  whatever values I gave its not displaying. What will be the issue be? Please help</p>