Coder Social home page Coder Social logo

hooks.guide's Introduction

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!

hooks.guide's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hooks.guide's Issues

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

Search?

It would be nice to use this centralised place to be able to search across all docs of the hooks.

We can add DocSearch (like on the react docs) on this page. What do you think?

Adding a single hook

Hi, i want to include this hook i made to your page: react-use-session. I see i have to create a new folder under public but it looks like all those hooks there are part of some set of hooks, so the folder name is the set name. In my case i only have a single hook. So, what name should i give to the folder? My Github username or just the hook name?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.