- Notifications
You must be signed in to change notification settings - Fork13
latviancoder/hooks-by-example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Hooks. People love them, people hate them. But one is for sure - hooks are there to stay and React ecosystem is going to evolve, again.
The most important feature of hooks is sharingreusable functionality. In the past it was achieved usingmixins, which were later deprecated in favor of patterns likerender props andhigher order components. But these patterns introduced additional complexity and resulted in something now calledwrapper hell.
The purpose of this reposity is to provide beginner-friendly real-world examples of different hooks usage. Here are some of them:
- Accordion [code,demo]
- Todo list [code,demo]
- Form validation library [code,demo]
- Sortable [code,demo]
- Concurrent React experiments
This application is built usingcreate-react-app, so feel free to clone the repo and play with examples yourself.
yarn installyarn startMore examples, more comments. Pull requests and overall suggestions are welcome.
About
Collection of beginner-friendly real world examples of hook usage.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.