JSFiddle - React, Tailwind, and code Playground

by neerajdotname

JavaScript

$.doit = function() {
    var dfd = $.Deferred();

    setTimeout(dfd.resolve, 1000);
    

    return dfd;
}

$.doit().done(function() {
    $('body').append('<p>Hello World</p>');
});