JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<button type="button" id="show">Show Content</button>
<button type="button" id="hide">Hide Content</button>
</div>
<div id="item" hidden>
Some hidden content
</div>
JavaScript
$( "#show" ).click(function() {
$('#item').show();
});
$( "#hide" ).click(function() {
$('#item').hide();
});