JSFiddle - React, Tailwind, and code Playground
by kyllle
HTML
<div id = "stuff">
<h2>This is the header</h2>
<p>This is the contents</p>
</div>
<button id="myButton">Click me</button>
CSS
#stuff{
display: none;
}
JavaScript
//$('#stuff').hide();
$('#myButton').click(function() {
//$(this).parent('#stuff').slideDown('slow');
$('#stuff').slideDown('slow');
});