title: setState is not working inside event function
body: <p>I have declared on constructor,</p>
  
  <pre><code>this.onProjectSelect.bind(this);
  </code></pre>
  
  <p>Ths is outside render and outside of constructor,</p>
  
  <pre><code>onProjectSelect(event) {
      this.setState({project: event.target.value});
      event.preventDefault();
  }
  </code></pre>
  
  <p>JSX View</p>
  
  <pre><code>&lt;Select2
  data={BasicStore.projectsSelect2Format}
  onChange={this.onProjectSelect}
  options={{
      placeholder: 'Search Project',
  }}
  /&gt;
  </code></pre>
  
  <p>I don't understand my mistakes here. Please help me to to get out of here. Thanks</p>