JSFiddle - React, Tailwind, and code Playground

HTML

<table id='myTable'><tr><td>This is a table</td></tr></table>
<button onclick='doStuff();alert("afterDoStuff");'>Click me</button>
<br><br>
<button onclick='reset();'>reset</button>

JavaScript

function doStuff()
{
    $('#myTable').hide(10, function() { alert($('#myTable').css('display')); });
}

function reset()
{
    $('#myTable').show();
}