JSFiddle - React, Tailwind, and code Playground
HTML
<div id="Log">
<a>Test results below:</a>
</div>
CSS
#Log { height:100%; width: 100%; font-size: small;}
#Log p { margin: 0; padding: 0; line-height: 1.0; }
JavaScript
var i = 0;
window.setInterval(function() {
document.getElementById('Log').firstElementChild.insertAdjacentHTML("afterend", "<p>" + i + " - " + new Date() + "</p>");
}, 10000);