JSFiddle - React, Tailwind, and code Playground
HTML
<span id="block" class="blocky">I should be 100x100. if not, this test failed.</span>
CSS
#block { display: none; width: 100px; height: 100px; background-color: #00ff00; }
.blocky { display: block; }
JavaScript
$('#block').hide() // if you don't hide first, it works
$('#block').show()