2 ms·
The majority of third-party hooks that I see use useState, useEffect or useContext, which hook into the React lifecycle of the component they are used in. If t
by TheCoelacanth 5y ago
The majority of third-party hooks that I see use useState, useEffect or useContext, which hook into the React lifecycle of the component they are used in.
If they aren't using one of those (or more rarely one of the other built-in hooks), then they probably don't really need to be hooks and should just be plain functions.