JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" id="menu">click me for menu</a>

<div id="test" style="height: 500px; width: 50px; background-color: #000; display: none;"></div>

JavaScript

$('#menu').click(function() {
        $('#test').animate({
			height: 'toggle'
			}, 290, function() {
		});
    });