JSFiddle - React, Tailwind, and code Playground
HTML
<div id='test1'>TEST1</div><div id='test2'>TEST2</div>
JavaScript
$('body').bind('click', function() {
alert('you clicked the body');
});
$('#test1').bind('click', function(e) {
e.stopImmediatePropagation();
alert('you clicked test 1 ');
});
$('#test2').bind('click', function(e) {
alert('you clicked test 2 ');
});