JSFiddle - React, Tailwind, and code Playground
HTML
<div id="foo">
Foo Bar
</div>
<h2 id="output"></h2>
CSS
#foo {
display: none;
}
JavaScript
var foo = document.getElementById('foo');
var $output = $("#output");
$output.text(getComputedStyle(foo).display);