https://github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases
This repo shows many use cases of almost all ReactJS hooks with a few explanation as a comment to particular source file.
https://github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases
hooks-api hooks-api-react react-hooks reactjs
Last synced: 3 months ago
JSON representation
This repo shows many use cases of almost all ReactJS hooks with a few explanation as a comment to particular source file.
- Host: GitHub
- URL: https://github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases
- Owner: shiponcs
- Created: 2020-04-22T10:26:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:00:34.000Z (over 2 years ago)
- Last Synced: 2024-12-29T17:44:24.055Z (5 months ago)
- Topics: hooks-api, hooks-api-react, react-hooks, reactjs
- Language: JavaScript
- Homepage:
- Size: 1.13 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reactjs-hooks-with-elaborate-use-cases
### It contains almost all of _reactjs hooks_ from basic to advance
- **useState**
- **useEffeect**
- **useCallback**
- **useContext**
- **useRef**
- **useMemo**
- **useReducer**
- **useImperativeHandle**For good coupling, this repo also contains some use cases of
- createContext
- memo
- createRef
- forwardRef (according to _reactjs docs_, "useImperativeHandle hook should be used with forwardRef")I took many ideas to arrange this from btholt's https://github.com/btholt/react-hooks-examples/tree/master/ and added more use cases with a bit explanation