JSFiddle - React, Tailwind, and code Playground
HTML
<p>First Paragraph</p>
<p>Second Paragraph</p>
<p>Yet one more Paragraph</p>
JavaScript
$( "p" ).click(function() {
$( this ).hide();
});
<p>First Paragraph</p>
<p>Second Paragraph</p>
<p>Yet one more Paragraph</p>
$( "p" ).click(function() {
$( this ).hide();
});