JSFiddle - React, Tailwind, and code Playground
HTML
<h1>test</h1>
<div></div>
<div></div>
<div></div>
<div></div>
CSS
div {
border: 1px solid #777;
margin: 2px;
width: 50px;
height: 50px;
float: left;
background: #aaa;
}
JavaScript
$('div').click(function(){
$(this).fadeOut('slow');
});