JSFiddle - React, Tailwind, and code Playground
JavaScript
function one(callback) {
console.log('one.start');
setTimeout(callback, 1000);
console.log('one.return');
}
function two(callback) {
console.log('two.start');
setTimeout(callback, 1000);
console.log('two.return');
}
function three() {
console.log('three');
}
one(function () {
two(three)
});