JSFiddle - React, Tailwind, and code Playground

HTML

<label ="label" id ="lblTime"/>

JavaScript

var i = 0;
$(document).ready(function() {
ShowCurrentTime();
})
function ShowCurrentTime() {
var dt = new Date();
document.getElementById("lblTime").innerHTML = 5 - i + " Seconds";
i++;
if (i == 5) {
setTimeout("location.href='http://www.aspdotnet-suresh.com'", 0);
}
window.setTimeout("ShowCurrentTime()", 1000);
}