JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<div>Hi!</div>
</body>
</html>
JavaScript
// This is an example of dinamic method creation
// see http://phrogz.net/JS/classes/ExtendingJavaScriptObjectsAndClasses.html#prototype
if (!Object.noopFunc) {
Object.prototype.noopFunc = function(e) {
return "noOp";
}
}
function myNiceEffectFunction() {
// Using a bare Jquery effect
$("div").fadeOut(500, someCallback);
}
function someCallback() {
alert("I'm never called");
}
$(myNiceEffectFunction);