JSFiddle - React, Tailwind, and code Playground
HTML
<p>Test this in Chrome</p>
<p>Sup</p>
<a href="#">clicking this should hide the above paragraph</a>
JavaScript
$(function() {
$('a').click(function() {
$('p').toggle();
// $('p').toggle(0); works though
});
});