4 ms·
You 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 sam
by Etheryte 2y ago
You 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