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

I know almost nothing about React, let alone React hooks, but all this looks a little hack-etty, doesn't it?

Also, I'm curious if there is any similarity between these React hooks and the infamous Drupal hooks.



Its absolutely hacketty, yes.

Not familiar with Drupal.


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.




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

Search: