JSFiddle - React, Tailwind, and code Playground
by Vinay Pratap Singh Bhadauria
HTML
<div id="realtime" class="left realtimeContend_h" style="width:100%"></div>
JavaScript
setInterval(function () {
$('#realtime').append("Hiiiii. is div").css("line-height", "100px");
var scrollerDivHeight=$('#realtime').height();
if(scrollerDivHeight>100){
$("#realtime").empty();
}
}, 1000);