It's not "overriding" lifecycle methods, it's passing lifecycle methods to a component factory function.
Conceptually, components have state, but it's all managed by react, so you only ever write pure functions. Granted, depending on how you update state in event handlers and lifecycle methods, you will need to think about…
It's not "overriding" lifecycle methods, it's passing lifecycle methods to a component factory function.
Conceptually, components have state, but it's all managed by react, so you only ever write pure functions. Granted, depending on how you update state in event handlers and lifecycle methods, you will need to think about…