JSFiddle - React, Tailwind, and code Playground

JavaScript

var echo = function() {
    console.log('Pass1');
};

var pass = function() {
    $.when(
    $.post("/echo/json/", {
        delay: 1
    }, echo), $.post("/echo/json/", {
        delay: 2
    }, echo), $.post("/echo/json/", {
        delay: 3
    }, echo)).then(function() {
        console.log('Pass2');
    });
};