I have an html page with:
- html elements
- some empty divs that will be replaced with react elements.
I would like to listen to a "click event" of an html element from a react component.
Here, i need to get inside the "react-component" an event that will be triggered when we click on the "click" element.
<div id="click">button in static html</div>
<div id="react-component"></div> -> replace by a react component
Is there a way to achieve that? Thanks