title: How to get a input value onChange in react variable?
body: <p>I have a search text box I need to get the value onchange send the request to API when I use the normal event.target method it shows error. how to rectify it as in onchange I need to call a function with some arguments so I cannot go by ease.</p>
  
  <p>my text box is :</p>
  
  <pre><code>&lt;input className="ReactSearchBox" name="search" placeholder="Search Doctors" 
            onClick={() =&gt; {
              this.onProviderListing(this.state.skip,0);
              this.onEnable();
                    }}
            onChange={() =&gt;this.onSearchProvider(this.state.skip,0)} /&gt;
  </code></pre>
  
  <p>my function where i need the onchange value is:</p>
  
  <pre><code>onSearchProvider(nSkip,nLimit,e){
        this.setState({
          limit:nLimit,
          skip:nSkip,
          listing: this.state.listing,
          searching: !this.state.searching
        })
        //console.log(nlimit);
        var headers = {
          "Content-Type":"application/json",
          "AccessToken":localStorage.TOKEN,
        }
        var _calObj = {initiatorId:localStorage.userid,visitType: "office", skip:nSkip,limit:"5", includeOfflineProviders:"true",searchQuery:"lo"}
  </code></pre>
  
  <p>I need to give my input values in search query onchange correspondingly, sort it out plz.</p>