JSFiddle - React, Tailwind, and code Playground
by Ivo Tanev
HTML
<div>
</div>
JavaScript
d = $('div');
function log(text) {
d.text(text);
}
function as() {
var defer = $.Deferred();
setTimeout(function() {
}, 3000)
function fn(callback) {
setTimeout(function() {
}, 2000)
}
return defer.promise();
}