DEV Community

Discussion on: Functional vs Class Components React

Collapse
 
fjones profile image
FJones

Counterpoint: ErrorBoundaries. Class components do have a purpose, especially with complex workflows or more elaborate non-React logic.
That said, the biggest benefits of function components is certainly the declarative nature of lifecycle management with them.