title: How to call a state changing helper method in React?
body: <pre><code>    state = { value:'' };
      count = (element) =&gt; () {
           this.setState({value:element});
      }
  
      render() {
         const elements = ['one','two','three'];
         return (
          &lt;div&gt;
            {
              elements.map( (element) =&gt; {
                   return &lt;div onLoad = {this.count(element)}&gt;{this.state.value}&lt;/div&gt;
              }
            }
          &lt;div&gt;
          )
       }
  
  </code></pre>
  
  <p>onLoad function doesn't call.
  By using onClick method in button it works.</p>