JSFiddle - React, Tailwind, and code Playground
HTML
<div style="width:100px; height:100px; background-color:#000"></div>
JavaScript
(function($) {
$.fn.invisible = function() {
return this.each(function() {
$(this).css("visibility", "hidden");
});
};
$.fn.visible = function() {
return this.each(function() {
$(this).css("visibility", "visible");
});
};
}(jQuery));
$("div").invisible();