JSFiddle - React, Tailwind, and code Playground JavaScript var foo = {}; $(document.body).promise("foo", foo); foo.done(function(){alert("hello");});