My use case is React, but this is a JavaScript issue.
I would like to extend functionality componentWillMount
with a subclass. How can i do this?
class Super {
componentWillMount() {
doStuff()
}
}
class Sub extends Super {
componentWillMount() {
super()
doMoreStuff()
}
}
source
share