JSFiddle - React, Tailwind, and code Playground
by krish
HTML
<span id="vomt"></div>
JavaScript
var sec=4;
var timer=setInterval(function()
{
$('#vomt').html(sec--);
if(sec<0)
{
$('#vomt').hide();
clearInterval(timer);
console.log(sec);
}
},1000);