JSFiddle - React, Tailwind, and code Playground
by Alin Guta
HTML
<div id="msg"/>
JavaScript
var showText = function (target, message, index, interval) {
if (index < message.length) {
$(target).append(message[index++]);
setTimeout(function () { showText(target, message, index, interval); }, interval);
}
}
$(function () {
showText("#msg", "Hello, World!", 0, 100);
});