JSFiddle - React, Tailwind, and code Playground

by andrewwhitaker

HTML

<div id="newpost">
    Test text
</div>

<button>Click</button>

JavaScript

$("button").click(function() {
    $("#newpost").toggle();
});