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

It’s different but has similarity. Both are function that gets called when some lifecycle is reached.

React hooks is running on each component, not on whole app. React app is composed by bunch of components, and each of those have their own hooks.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: