JSFiddle - React, Tailwind, and code Playground

HTML

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

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

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

JavaScript

$('.hideable').click(function(){
    $(this).hide();
});