JSFiddle - React, Tailwind, and code Playground
by nju33
Babel + JSX
class Core {
constructor() {
this.__something = null;
}
init() {
this.self = new Public(this);
}
}
class Something {
get something() {
return {
hello: this.hello
};
}
hello() {
console.log(123);
}
}
class Public extends Something {
constructor(core) {
super(core);
this.__core = core;
}
}
const core = new Core();
core.init();
core.self.something.hello();