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

This is definitely not the case. I’ve seen enough class components with complicated componentDidUpdate methods. The method would then be broken up into multiple other smaller methods (or to re-use some logic in didMount and didUpdate)

A few iterations later and you have setState peppered throughout your component.

More often then not though I’ve seen a lot of class components that would just fail to update when certain props change. It’s much harder to miss these cases with hooks.



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

Search: