JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" id="test_btn" value="Test"/>
<div id="some_other_div">
This is some text
</div>
CSS
#some_other_div{
display:none;
}
JavaScript
$('#test_btn').click(function(){
$('#some_other_div').toggle()
});