JSFiddle - React, Tailwind, and code Playground
by Arun Kumar
HTML
<button id="show">Button</button>
<button id="showit">Show Button</button>
CSS
#show{
display:none;
}
JavaScript
$("#showit").click(function(){
$("#show").css("display", "block")
});
setInterval(function(){
if($("#show").is(':visible')){
console.log("run the code")
}
},2000);