title: Delete functionality is not working properly-Reactjs
body: <p>i have created delete functionality,in which when user clicks delete[X] it has to get deleted from the respected row w.r.t datagrid view used in react</p>
  
  <p>passing id as an parameter
  used _find index(loadlash)</p>
  
  <p>problem:</p>
  
  <p>1) selected Rows are not getting deleted.</p>
  
  <p>code:</p>
  
  <p>onclick event</p>
  
  <pre><code>      &lt;div&gt;
          &lt;button onClick={() =&gt; this.deleteHandler(params.value)}&gt;X&lt;/button&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>Delete code:</p>
  
  <pre><code> deleteHandler = (id) =&gt; {
   const arrayPerson = this.props.rowData;
   const index = _.findIndex(this.props.rowData, { id: id });
   if (arrayPerson.indexOf(id) &gt; -1) {
     arrayPerson.splice(index, 1);
     this.setState({ rows: arrayPerson });
   }
  </code></pre>
  
  <p>can any one help me on this issue.</p>