JSFiddle - React, Tailwind, and code Playground
JavaScript
$.when($.when(step1()).then(step2)).then(step3);
function step1() {
console.log("step1");
}
function step2() {
console.log("step2");
}
function step3() {
console.log("step3");
}