JSFiddle - React, Tailwind, and code Playground

HTML

<div class="test1">
 Hello!
</div>

JavaScript

HTMLElement.prototype.hide = function() {
		this.style.visibility = 'hidden';  
    return this;
}

HTMLElement.prototype.show = function() {
		this.style.visibility = 'visible';  
    return this;
}

let el = document.querySelector(".test1");

setTimeout( () => { el.hide(); }, 1000 );   // $('.test1')[0].hide();
setTimeout( () => { el.show(); }, 2000);