title: React getting the ID of clicked button
body: <p>I have 5 clickable links, each with unique ID. I am trying to get the ID of the link that was clicked. I have tried two methods but neither work as I would like.</p>
  
  <p>Inside render I have:</p>
  
  <pre><code>this.state.data.map((dynamicData, key) =&gt;
    &lt;a href={"/#/template"} id={dynamicData.id} onClick={() =&gt; this.reply_click(this.id)}&gt;{dynamicData.name}&lt;/a&gt;
    &lt;a href={"/#/addTeams"}&gt;&lt;button type="button" class="btn-lisa"&gt;Edit&lt;/button&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Basic method that returns undefined. What am I doing wrong?: </p>
  
  <pre><code>reply_click(clicked_id) {
    console.log(clicked_id);
  }
  </code></pre>