JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<span id="block" style="display: none">I should be 100x100.  if not, this test failed.</span>

CSS

#block { display: inline-block; width: 100px; height: 100px; background-color: #00ff00; }

JavaScript

$('#block').hide() // if you don't hide first, it works
$('#block').show()