hooks.guide icon indicating copy to clipboard operation
hooks.guide copied to clipboard

Add additional built-in hooks

Open newswim opened this issue 6 years ago β€’ 3 comments

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

newswim avatar Nov 02 '18 15:11 newswim

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 ?

vivek12345 avatar Nov 02 '18 15:11 vivek12345

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. πŸ‘

Raathigesh avatar Nov 02 '18 20:11 Raathigesh

πŸ™Œ

I was out for the weekend, but will work on this starting.... now.

newswim avatar Nov 05 '18 22:11 newswim