JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

for (i = 0; i < 100; i++) {
    // Use this as your stdout.
    // Everything added to Test's innerHTML will
    // be printed as HTML.
    Test.innerHTML += i + '<br/>';
}