Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
croes
7 months ago
|
parent
|
context
|
favorite
| on:
The Frontend Treadmill
Which version of react?
Hooks or classes?
Or whatever comes next.
Etheryte
7 months 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
7 months ago
|
parent
[–]
You 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
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Hooks or classes?
Or whatever comes next.