JSFiddle - React, Tailwind, and code Playground

HTML

<a href="javascript:void(0)" id="showContent">Show Content</a>
<br><br><br>
<table width="400" border="1">
    <tr>
        <td><div style="display: none;" id="mainContent">THIS IS MAIN CONTENT</div></td>
    </tr>
</table>

JavaScript

$('#showContent').click(function () {
    $('#mainContent').slideToggle('slow');
});