Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TurningCanadian
on March 29, 2022
|
parent
|
context
|
favorite
| on:
React v18.0
FYI IntelliJ/WebStorm has a refactor option that automatically converts class-based components to hooks and vice-versa.
crummy
on March 30, 2022
[–]
Does it? I know it can go hooks -> class but haven't been able to get it to work the other way around.
edit: You can go both ways, if your class component is simple enough.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: