JSFiddle - React, Tailwind, and code Playground
JavaScript
class A {
static method () {
console.log(this.message())
}
static message() { return 'a' }
}
class B extends A {
static message() { return 'b' }
}
B.method()
class A {
static method () {
console.log(this.message())
}
static message() { return 'a' }
}
class B extends A {
static message() { return 'b' }
}
B.method()