JSFiddle - React, Tailwind, and code Playground
HTML
<div id="time"></div>
JavaScript
var currentTime = 0;
window.setInterval(timer, 100)
function timer() {
currentTime = currentTime + 1;
$('#time').text(currentTime / 10);
}
<div id="time"></div>
var currentTime = 0;
window.setInterval(timer, 100)
function timer() {
currentTime = currentTime + 1;
$('#time').text(currentTime / 10);
}