3 ms·
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 ap
by rizky05 4y ago
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.