JSFiddle - React, Tailwind, and code Playground

HTML

<div id="num">10</div>

JavaScript

var num = document.querySelector("#num");
var start = new Date();
setInterval(function() {
    var now = new Date();
    num.innerHTML = Math.floor((now - start) / 100) + 10;
}, 1000);