public abstract class Reader
Did Java add multiple inheritance or am I missing something? this.addListener('mount', () => {
// do things on mount
// return cleanup to be called on unmount
return () => cleanup()
})
called from the constructur of a component. With this you could setup multiple listeners and make sure they're all cleaned up.
YMMW but I find it fast enough to maintain focus on one task (if that's what you're going for given a particular problem