React should deprecate class components
React should deprecate class components. They’ve languished long enough.
React’s API keeps growing. And many modern libraries assume you’re using hooks.
It’s time to remove some old APIs that should be avoided anyway.
Bye classes 👋
Concern: But what about companies that have lots of class components?
3 options:
1. Convert them.
2. Stay on old React. You increasingly can’t use modern React features/libs with classes anyway.
3. The React team could provide a separate lib for ongoing legacy class support.