JSFiddle - React, Tailwind, and code Playground

HTML

<h2 id="counter"></h2>

JavaScript

var el = document.getElementById('counter'),
    timer = 0;

var interval = setInterval(function(){
        timer += 10;
    	el.innerHTML = timer;
    },10);

setTimeout(function(){clearInterval(interval)},1000);