JSFiddle - React, Tailwind, and code Playground
HTML
<div id='result'></div>
JavaScript
var length = 10;
var url = window.location;
for (i=0 ; i<length ; i++) {
$.get(url, (function(i) {
return function() {
$("#result").append(i + '<br/>');
}
})(i)
);
}