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

> but I find that I miss the lifecycle callbacks of the older class based style.

Why not continue to use the class based style? It's still supported. We're using hooks for some simpler cases where they really cut down on boilerplate, but we're continuing to use classes for more complex cases where we find it more readable.



That's what I did at my last gig, where I owned the codebase. At my current gig, I share it with 10 people and the decision to move to hooks was made before I joined.




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

Search: