title: React- change input value causes error
body: <p>I have problem with changing value of <code>input</code> during <code>onChange</code>,</p>
  
  <pre><code> handleChange(event){
      this.setState({
        value: event.target.value
      });
    }
  
    render(){
      return(
        &lt;div className={s.root}&gt;
          &lt;div className={s.container}&gt;
            &lt;label className={s.captionLabel}&gt;{this.props.caption}&lt;/label&gt;
            &lt;input className={this.props.modal? s.modalTextInput : s.textInput} onChange={this.handleChange} value={this.state.value} ref="inp" disabled={!this.state.isChecked} type="text" /&gt;
            &lt;label className={s.unitLabel}&gt;{this.props.unit}&lt;/label&gt;
            &lt;input className={s.boxInput} type="checkbox" checked={this.state.isChecked} onChange={this.toggleChange.bind(this)}/&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      )
    }
  </code></pre>
  
  <p>I am still getting error message   </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'setState' of undefined</p>
  </blockquote>
  
  <p>I tried <code>onChange={this.handleChange.bind(this}</code> , after this I didn't receive this error message but I couldn't change value of input. In extract of <code>event.target.value</code> I am getting value like a 1,01,02 and so on.... but value don't change anymore (I just cant overwrite value in input ). So any tips what I have to do?</p>