React updateState function
<p>I have simple update data function which currently not working:   </p>

<pre><code>    class App extends React.Component {

           constructor(props) {
              super(props);

              this.state = {
                 data: 'Initial data...'
              }

              this.updateState = this.updateState.bind(this);

           };

           updateState() {
              this.setState({data: 'Data updated...'})
           }

           render() {
              return (
                 &lt;div&gt;
                    &lt;button onClick = {this.updateState}&gt;CLICK&lt;/button&gt;
                    &lt;h4&gt;{this.data}&lt;/h4&gt;
                 &lt;/div&gt;
              );
           }
        }

   ReactDOM.render(&lt;App/&gt;, document.getElementById('app'));
</code></pre>

<p>Below I have link to jsbin:</p>

<p><a href="http://jsbin.com/vidumiroki/edit?html,js,output" rel="nofollow">http://jsbin.com/vidumiroki/edit?html,js,output</a></p>