JSFiddle - React, Tailwind, and code Playground

by deepak sisodiya

HTML

<button>Toggle</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>

JavaScript

/* jquery toggle event
toggle : combination of show and hide
*/

$("button").click(function () {
    $("p").toggle(500);
});