EduardS
EduardS2y ago

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

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
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View