JSFiddle - React, Tailwind, and code Playground

HTML

<div id="Parent" style="width:300px;height:100px;border:solid 1px red;">
    Parent
    <div id="Child" style="width:300px;height:50px;border:solid 1px green;">
        Child
    </div>
</div>

JavaScript

$(document).ready(function(){
    $("#Child").click(function(){alert('child')})
    $("#Parent").click(function(){alert('Parent')})
})