JSFiddle - React, Tailwind, and code Playground
HTML
<div class="typetext"></div>
JavaScript
var str = "Let's get|Future Ready!";
var split = str.split("");
var counter = 0;
var SI = setInterval(function() {
var typeText = $('.typetext');
typeText.append(split[counter] == '|' ? '<br>' : split[counter]);
counter++
if(counter == str.length){clearInterval(SI)}
},100)