JSFiddle - React, Tailwind, and code Playground
by mischah
JavaScript
function fillTree() {
for (var foo = 0; foo <= 500; foo++) {
console.log('foo='+foo);
}
}
function checkSelectedBoxes(){
for (var bar = 0; bar <= 500; bar++) {
console.log('bar='+bar);
}
}
fillTree(); // This take time to get data. onLoad() doesnt work.
setTimeout(function(){ checkSelectedBoxes() },500);