JSFiddle - React, Tailwind, and code Playground

HTML

<button>hi</button>
<div>test</div>

JavaScript

$("button").click(function () {
    $('div').hide("slide", {
        direction: "left"
    }, 1000);
});