JSFiddle - React, Tailwind, and code Playground

by rmurphey

JavaScript

var MyConstructor = function() {
};


$.extend(MyConstructor.prototype, { foo : 'bar' });

var obj = new MyConstructor();
document.body.innerHTML = obj.foo;