News for hackers. Stuff that matters.

MindPenguin

Re:Goodbye, Object Oriented Programming on Tuesday July 26, 2016 @12:56AM (#12163419)
It's not "overriding" lifecycle methods, it's passing lifecycle methods to a component factory function.
Re:Goodbye, Object Oriented Programming on Sunday July 24, 2016 @04:30PM (#12154729)
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 state a lot, but this is an unavoidable fact of UI programming.

> every component must be created by extending a base class

This is an implementation detail, instead of ES6 classes you can also use React.createClass(), which might as well be named React.createComponent(). These "classes" can't be inherited from.