JSFiddle - React, Tailwind, and code Playground

HTML

<h1></h1>
<p>Before content</p>
<div id="thediv">This is the div</div>
<script type="text/javascript">
    var $thediv = $('#thediv');
    var height = $thediv.height();
    $thediv.hide();
    $("h1").text ("Div's height is: " + height);
    //$thediv.show();
</script>
<p>After content</p>