activate onClick of an element only if not clicked on certain child elements – Html
<div onClick={()=>do_stuff()}> <div classname="div-1"></div> <div classname="div-2"></div> <div classname="div-3"></div> <div classname="div-4"></div> <div classname="div-5"></div> </div> When the parent is clicked, it should only call the callback if for example, the click did not include div-4, div-5 etc. How to implement this in…