July 9, 2019

193 words 1 min read

Raathigesh/hooks.guide

Raathigesh/hooks.guide

Collection of React hooks curated by the community

repo name Raathigesh/hooks.guide
repo link https://github.com/Raathigesh/hooks.guide
homepage https://hooks-guide.netlify.com/
language JavaScript
size (curr.) 1140 kB
stars (curr.) 486
created 2018-10-30
license MIT License

All Contributors

  • 🍎 Handpicked hooks to learn from or copy/paste or experiment
  • πŸ’‘ All code snippets are interactive
  • 🎈 Copy snippets to clipboard with a click
  • πŸ’„ Prettify the snippets

πŸ— How do I add a new Hook?

The hooks are documented using markdown in public/docs directory.

To add a new hook,

  • Add a new markdown file under a folder.
    • Document the hook under community folder if the hook doesn’t belong to a published npm module.

      Refer public/docs/template.md for documentation guide

  • Make a pull request

🧑 Contribute

  • Run yarn install
  • Run yarn start to start the app in dev mode
  • If you add a new markdown file, you have to go to src/docs.js file and just make a dummy change to trigger a webpack build. This runs the babel macro again.

πŸ‘©β€πŸŽ¨ Contributors

Thanks goes to these wonderful people (emoji key):

Raathigeshan KugarajanπŸ’» 🎨 πŸ’‘ πŸ“– Vivek NayyarπŸ’» πŸ’‘ πŸ“– Piotr PietrzakπŸ“– Ivan MironchikπŸ’‘

This project follows the all-contributors specification. Contributions of any kind welcome!

comments powered by Disqus