JSFiddle - React, Tailwind, and code Playground
by Brian Dukes
HTML
<ul id="results"></ul>
JavaScript
for (x = 0; x < 10; x++) {
setTimeout(function () {
console.log(x);
$('#results').append($('<li>').text(x));
}, 1);
}
by Brian Dukes
<ul id="results"></ul>
for (x = 0; x < 10; x++) {
setTimeout(function () {
console.log(x);
$('#results').append($('<li>').text(x));
}, 1);
}