JSFiddle - React, Tailwind, and code Playground

by avipinto

HTML

<div style="width:250px; height:100px; border:1px solid red; margin-bottom:10px">
    <p>lorem ipsum1</p>
</div>

<div style="width:250px; height:100px; border:1px solid red; margin-bottom:10px">
    <p>lorem ipsum2</p>
</div>

<div style="width:250px; height:100px; border:1px solid red; margin-bottom:10px">
    <p>lorem ipsum3</p>
</div>

JavaScript

$("div").click(function()
               {
                   $(this).hide();
                   
                   });