title: How to pass delete id to API while using map in map function
body: <p>How can I post the delete id to the API server while using the <i>handleClick</i> map in map function?</p>
  
  <p>In the case I can handle the joins table records, suppose I want to delete a record from child table how can I handle this situation.</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;tbody&gt;
    {allRecords.map(record =&gt; (
       record.posts.map(post =&gt; (
          &lt;AllRows
            key={record.id}
            record={record}
            post = {post}
            onDelete={this.handleDelete}
          /&gt;
      ))
    ))}
  &lt;/tbody&gt;
  </code></pre>