DEV Community

loading...

Discussion on: When to use Class Component and Functional Component??

Collapse
dylanesque profile image
Michael Caveney

The only reason to use Class Components with modern React I can think of is if you need to use Error Boundaries since there isn't a function version of these.....yet.

reactjs.org/docs/error-boundaries....

Some comments have been hidden by the post's author - find out more