Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FYI IntelliJ/WebStorm has a refactor option that automatically converts class-based components to hooks and vice-versa.


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: