JSFiddle - React, Tailwind, and code Playground

by zerkms

HTML

<div class="test"></div>

JavaScript

for (i=0;i <= 10;i++){
    (function(i) {
        setTimeout(function(){
            $(".test").html(i);
        }, i * 1000);
    })(i);
}