JSFiddle - React, Tailwind, and code Playground
HTML
<div id="main">
</div>
JavaScript
const numbers = [5,4,3,2,1,8,7,0,12]
numbers.forEach(num => {
// assuming num*10ms difference is enough to avoid a race
setTimeout(() => {
document.getElementById('main').innerHTML+=" "+num;
},num*10)
});