JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <button>Click me</button>
</div>

JavaScript

$('div').click(function(e) {
    console.log('div clicked');
});
$('button').click(function(e) {
    var copy = $.extend(true, {}, e);
    setTimeout(function() {
        $(copy.target.parentNode).trigger(copy);
    },500);
    e.stopPropagation();
});