JSFiddle - React, Tailwind, and code Playground

HTML

Test test test
<div id="test"></div>

CSS

#test {
        background-color: blue;
        float: right;
        width: 100px;
        height: 20px;
        overflow: hidden;
        contain: strict;
    }

JavaScript

var test = document.getElementById("test");
var a = document.createTextNode("");
test.appendChild(a);
setInterval(function(){
    a.nodeValue = Math.random().toString().slice(-10);
},100);