JSFiddle - React, Tailwind, and code Playground
Babel + JSX
class A {
}
class Child extends A {
constructor() {
super();
this.childProperty = "cool";
}
}
let child = new Child();
console.log(child.childProperty);
class A {
}
class Child extends A {
constructor() {
super();
this.childProperty = "cool";
}
}
let child = new Child();
console.log(child.childProperty);