R
Reactiflux

Is a function that calls custom hooks also a custom hook?

Is a function that calls custom hooks also a custom hook?

EEduardS1/31/2023
Let's say I have a custom hook useLocaleStorage implemented with useState and useEffect then it is considered a hook because it uses built-in hooks. If then I create a function getTheme and I use useLocalStorage inside it then is getTheme considered a custom hook because the useLocaleStorage itself uses built-in hooks?
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
UUUnknown User2/2/2023
4 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

Is a function that calls custom hooks also a custom hook?

Join Server