3 ms·
Which version of react? Hooks or classes? Or whatever comes next.
by croes 2y ago
Which version of react?
Hooks or classes?
Or whatever comes next.
- Etheryte 2y agoYou can still write class-based components in React, no problem. It might not be in vogue, but for the most part, you can still write React 18.x roughly the same way you wrote React 0.x.
- rcarr 2y agoYou can but are people going to when the first thing you see upon opening the docs is a giant warning telling you not to? https://react.dev/reference/react/Component https://react.dev/reference/react/Component