JSFiddle - React, Tailwind, and code Playground
HTML
TIME LEFT: <font size="5" color='#F7D358'><span id='timer_div'></span></font>
JavaScript
var seconds_left = 60;
var interval = setInterval(function() {
document.getElementById('timer_div').innerHTML = --seconds_left;
if (seconds_left <= 0)
{
document.getElementById('timer_div').innerHTML = '...';
clearInterval(interval);
}
}, 1000);