JSFiddle - React, Tailwind, and code Playground
JavaScript
var d1 = $.Deferred();
d1
.then(function(a){
console.log(a);
return "more stuff";
})
.then(function(b){
console.log(b);
});
d1.resolve("sample data1");
var d2 = $.Deferred();
d2
.done(function(x){
console.log(x);
return "more stuff";
})
.done(function(y){
console.log(y);
});
d2.resolve("sample data2");