JSFiddle - React, Tailwind, and code Playground
HTML
<p>If you click on the "Hide" button, I will disappear.</p>
<button id="hide">Hide</button>
<button id="show">Show</button>
JavaScript
// jquery hide and show event
$("#hide").click(function () {
$("p").hide();
});
$("#show").click(function () {
$("p").show();
});