News for hackers. Stuff that matters.
Re:React v18.0 by TurningCanadian on Tuesday March 29, 2022 @03:03PM (#30846939)
FYI IntelliJ/WebStorm has a refactor option that automatically converts class-based components to hooks and vice-versa.
Re:React v18.0 by crummy on Wednesday March 30, 2022 @02:30PM (#30858996)
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.