JSFiddle - React, Tailwind, and code Playground

HTML

<div id="my_div">
</div>

JavaScript

setInterval(function () {
    $("html, body").animate({
        scrollTop: $(document).height()
    }, 100);
}, 100);
 var i=0;
setInterval(function(){
    i++;
  $('#my_div').append("new item -"+i+"<br>");
},500)