3 ms·
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 betwe
by paganel 4y ago
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.
- spion 4y agoIts absolutely hacketty, yes. Not familiar with Drupal.
- rizky05 4y agoIt’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.