JSFiddle - React, Tailwind, and code Playground

HTML

<div style="background-color:orange">Click me to open the link
    <br>
    <a id="b" href="http://example.com">Link</a>
</div>

<script>
    jQuery('div').click(function(){
        document.getElementById('b').click();
    });

    jQuery('a').click(function(e){
       alert('It came here!');           
       e.stopPropagation();
       return true;   
    });
</script>