JSFiddle - React, Tailwind, and code Playground
HTML
<section></section>
CSS
div {
background: #ccf;
padding: 50px;
margin: 50px;
}
section {
overflow-y: scroll;
height: 300px;
}
JavaScript
var contador = 0;
var el = document.querySelector('section');
setInterval(function() {
el.innerHTML += '<div>' + (contador++) + '</div>';
var height = el.scrollHeight;
el.scrollTop = height;
}, 800);