Html – return when user clicks a children of a anchor
I want to return the following function if the user clicks a children of the anchor: <a href="/product/product-id"> I am a product <div> Add to favorites </div> </a> const handleClick = (event) =>{ console.log(event); // true -> if i click…