JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
JavaScript
function jQuery() {
// empty constructor function
}
jQuery.fn = jQuery.prototype; // Make a "fn" property that simply references the
// jQuery.prototype object.
// So assigning a property to jQuery.fn
// is the same as assigning it to jQuery.prototype
jQuery.fn.sayHello = function() { alert( "Hi!" ); };
// Create an object from the jQuery constructor
var obj = new jQuery;
// Our new object will automatically inherit the "sayHello" function
obj.sayHello(); // "Hi!"
jQuery.fn.sayGoodbye = function() { alert("Goodbye!"); };
// call the new method on our original object
obj.sayGoodbye(); // Goodbye!