title: type of event.target.value should be changed to integer in react
body: <p>I have an input field and When we enter the value in the input field I am updating the state with the entered value using event.target.value. By default the <code>event.target.value</code> be a string. Can we convert that into an integer ?</p>
  
  <pre><code>    const func=(props)=&gt;{
        return(
        &lt;div&gt;
       &lt;input type="text" onChange={props.change} value={props.value}/&gt;
       &lt;/div&gt;
      )};
  
     // handler function
     changeHandler =(event)=&gt;{
        this.setState({data:event.target.value})
     };
  </code></pre>
  
  <p>My state has integer value that i assigned to Zero (data:0). So while updating the state using changeHandler function data becomes string.I want to typecast the event.target.value to the integer.</p>