JSFiddle - React, Tailwind, and code Playground

by luka kupunia

HTML

<div></div>
<div></div>

CSS

body {
    background: black;
    font-size: 0px;
}
div {
    width: 100px;
    height: 100px;
    opacity: 0.5;
    display: inline-flex;
}
div:nth-child(1) {
    background: red;
}
div:nth-child(2) {
    background: yellow;
}

JavaScript

$('#parent').click(function(){
	alert(1)
})

$('#child').click(function(event){
	event.stopPropagation()
})