JSFiddle - React, Tailwind, and code Playground
HTML
<p id="show-this-text" class="hide">Showing</p>
CSS
.hide {
display:none;
}
JavaScript
$.cssHooks['display'] = {
get: function(elem, computed, extra) {
return elem.style['display'];
},
set: function(elem, value) {
try {
elem.style['display'] = value;
} catch (e) {}
}
}
$('#show-this-text').show();