JSFiddle - React, Tailwind, and code Playground

HTML

<div id="L1">
	<div id="L2">
		<div id="L3">
			Test
		</div>
	</div>
</div>

JavaScript

$("#L1").on("click", function(event){
	alert("L1");
});

$("#L2").on("click", function(event){
	alert("L2");
});

$("#L3").on("click", function(event){
	event.stopPropagation();
	alert("L3");
});