JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script type="text/javascript">
function animate() {
for (i = 0; i <= 10; i++) {
(function(m) {
setTimeout(function() {
document.write(m);
}, 100 * (i + 1))
})(i);
};
}
animate();
</script>
</body>
</html>