JSFiddle - React, Tailwind, and code Playground

HTML

<div id="box"></div>

JavaScript

var iii = 0;
//t is unqiue representer of this timer. 
//the callback is executed only once after 1000ms
var t = setInterval(function(){ 
    var element = document.getElementById("box");
    element.innerHTML = iii++;
}, 100);//1000ms is the execution delay