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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.