JSFiddle - React, Tailwind, and code Playground
by andypotanin
JavaScript
function Proto() { console.log( 'ta da' ); return this; }
Proto.prototype = {
'one': function One() {}
}
var test1 = new Proto;
var test2 = function() {}
test2.prototype = Proto.prototype;
console.clear();
console.log( test2.prototype.one );
//console.log( test1.constructor() )