JSFiddle - React, Tailwind, and code Playground

HTML

<div id="mydiv" style="width:100px; height: 100px; background-color:#000000; cursor:pointer;">
    
    <div id="INSIDE" style="background-color:#ffffff; border-style:none;"></div>
    
</div>

JavaScript

$('#mydiv').click(function() {
	alert($(this).html());
});