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

For simple states hooks are the same if not better, I would say almost probably better.

For complicated states where you need 4+ hooks - well in that case most of the time refactoring is needed but there are cases where it should not be refactored and I have a certainty something could be done much easier with the old class based way of doing it, but then I would have to deal with people in PR who say we must use hooks for everything.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: