hooks.guide
hooks.guide copied to clipboard
๐ Collection of React hooks curated by the community
- ๐ 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
communityfolder if the hook doesn't belong to a published npm module.Refer
public/docs/template.mdfor documentation guide
- Document the hook under
- Make a pull request
๐งก Contribute
- Run
yarn install - Run
yarn startto start the app in dev mode - If you add a new markdown file, you have to go to
src/docs.jsfile 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!