JSFiddle - React, Tailwind, and code Playground
HTML
<button>Toggle</button>
<p>Hello</p>
<p class="hide">Good Bye</p>
CSS
.hide {
display: none;
}
JavaScript
$( "button" ).click(function() {
$( "p" ).toggle();
});
<button>Toggle</button>
<p>Hello</p>
<p class="hide">Good Bye</p>
.hide {
display: none;
}
$( "button" ).click(function() {
$( "p" ).toggle();
});