JSFiddle - React, Tailwind, and code Playground

HTML

<div id="id">0</div>

JavaScript

setInterval(function(){
		if($("#id").html()<100) {
			$("#id").html(Number($("#id").html())+1);
		}
	},1000);