title: implementation of search functionality in reactjs
body: <p>I am trying to implement search functionality in reactjs. i am not getting how to do. below i have given code which  i have tried.<br />
  i need to display result in table after serach.</p>
  <pre><code>                        render() { 
                              return (
                                  &lt;div&gt;
                                      &lt;input onChange={this.handleSearchChange} placeholder=&quot;Search&quot;/&gt;
                                  &lt;/div&gt;  
                                  )
                          }
  </code></pre>
  <p>// below is my function</p>
  <pre><code>            handleSearchChange = e =&gt; {
                  const { value } = e.target;
                  var self = this 
              axios.post(&quot;http://localhost:4000/get&quot;,  { name:   value })
                  .then(function(res){
                      console.log(&quot;detail&quot;,res.data)
                  })
                  .catch(function(err){
                      console.log('Error',err)
                  })  
              };
  </code></pre>
  <p>//below is my api response</p>
  <pre><code>              [
              {color: &quot;green&quot;,name: &quot;test&quot;,age: &quot;22&quot;},
              {color: &quot;red&quot;,name: &quot;test2&quot;,age: &quot;23&quot;}
          ]
  </code></pre>