JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/async/0.9.0/async.js"></script>

JavaScript

async.each([0,1,2,3,4,5], function(i, callback) {
    setTimeout(function(){ 
        console.log(i); 
        callback();
    }, 5000);
}, function(err){
    console.log('All files have been processed successfully');
});