JSFiddle - React, Tailwind, and code Playground JavaScript for(i = 0; i < 5; i++) { setTimeout("document.write(i + ' ')", 1000); }