JSFiddle - React, Tailwind, and code Playground
by Leo Cavalcante
JavaScript
var Module = Module || {};
Module.MixinFoo = (function(){
function foo() {}
return function(exports) {
exports.foo = foo;
};
}());
Module.MixinBar = (function(){
function bar() {}
return function(exports) {
exports.bar = bar;
};
}());
Module.Foo = function() {
Module.MixinFoo(this);
};
Module.Bar = function() {
Module.MixinFoo(this);
Module.MixinBar(this);
};
var foo = new Module.Foo();
var bar = new Module.Bar();
console.log(foo, bar, {});