hooks.guide
hooks.guide copied to clipboard
Add additional built-in hooks
Very impressed with this project - so elegant!
I'm just wondering if it was a conscious decision to leave out some of the other built-in hooks, here's what it says in the docs:
The following Hooks are either variants of the basic ones from the previous section, or only needed for specific edge cases. Donβt stress about learning them up front.
I'd be happy to add examples if it pleases the authors.
- [ ] useContext
- [ ] useCallback
- [ ] useMemo
- [ ] useRef
- [ ] useImperativeMethods
- [ ] useMutationEffect
- [ ] useLayoutEffect
Thank you for the kind words @newswim. Credit majorly goes to @Raathigesh for making this up and running so quick. From what I know, it was a conscious decision as to including only the simpler and easier one's, so that everyone can get a hold of these basic hooks and then move to the more advanced one's.
But may be we can add a section for advanced hooks and add the one's you mentioned into those.
What do you think @Raathigesh ?
Hey @newswim,
We particularly avoided large and complicated hook implementations but it makes a lot sense to have the built-in hooks all listed with minimal examples. It would be awesome if you could add the missing once. π
π
I was out for the weekend, but will work on this starting.... now.