JSFiddle - React, Tailwind, and code Playground
HTML
<a id="toggleform" href="#">Toggle Form</a>
<div id="hideform">
Form stuff here
</div>
CSS
#hideform {display:none;}
JavaScript
$( "#toggleform" ).on( "click", function() {
$('#hideform').toggle();
});