title: How to connect raw html <a href> tag to React javascript?
body: <p>I building out a small web app that simulates browsing WikiPedia by pulling raw html WikiPedia article content (via it's api). I'm then displaying the html in my app by using "dangerouslySetInnerHTML". </p>
  
  <p>I trying to figure out how to allow a user to click on a an unmounted  &lt; ahref="wiki/javascript" > tag and capture that event on the React side. I wanted to capture that   tag click to update UI state and make server requests. </p>
  
  <p>When using "dangerouslySetInnerHTML" click events are not recognized by react. So I added a function on the global window object on the React side to be clicked on by the  tags but get a warning about 'unmounted components' and 'memory leaks'.</p>
  
  <p>How can I prevent the raw unmounted   tags from reloading the page and capture that click event in order to update my React's UI? </p>