What is the proper way to handle an onClick event?
<div class='container' onClick={() => { *do something* }}>
<div class='element'></div>
<div class='element'></div>
<div class='element'></div>
</div>
This will cause onClick to also trigger if you click on one of the child elements. How can I restrict the event to only fire on the container?