JSFiddle - React, Tailwind, and code Playground
by samccone
JavaScript
$(document).ready(function() {
magic(0);
});
function magic(run_num) {
if(run_num < 10)
{
//MAKE AJAX CALL HERE...
// THEN USE SUCCESS: to set the next time out
console.log("hello "+run_num);
setTimeout(magic(++run_num),100);
}
}