JSFiddle - React, Tailwind, and code Playground
HTML
<label id="clickMe">Show</label>
<br />
<div id="textBox" style="display: none">This text will be toggled</div>
JavaScript
$(document).ready(function() {
$("#clickMe").click(function() {
$("#textBox").toggle();
label = $(this);
if(label.html()=="Show"){
label.html('Hide');
}else{
label.html('Show');
}
});
});