JSFiddle - React, Tailwind, and code Playground
by jhoguet
JavaScript
function first(model){
model.somethingFromFirst = 'a';
return model;
}
function second(model){
model.somethingFromSecond = 'b';
return model;
}
function third(model){
model.somethingFromThird = 'c';
return model;
}
$.when({})
.then(first)
.then(second)
.then(third);