Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raxjs/rax-hooks
🥳 Contains rax hooks that are used very frequently.
https://github.com/raxjs/rax-hooks
hooks rax rax-hooks
Last synced: 24 days ago
JSON representation
🥳 Contains rax hooks that are used very frequently.
- Host: GitHub
- URL: https://github.com/raxjs/rax-hooks
- Owner: raxjs
- License: other
- Created: 2019-11-29T14:15:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-20T18:22:48.000Z (about 3 years ago)
- Last Synced: 2024-11-09T15:47:18.694Z (about 1 month ago)
- Topics: hooks, rax, rax-hooks
- Language: JavaScript
- Homepage: https://github.com/alibaba/rax
- Size: 219 KB
- Stars: 8
- Watchers: 8
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rax - Rax Hooks - Contains rax hooks that are used very frequently. (Rax / Rax Tutorials)
README
🥳 Contains rax hooks that are used very frequently.
## Component Life Cycle
- [x] useMountedState: get component mount state
- [x] useMounted: calls a function after the component is mounted
- [x] useUnmount: calls a function when the component will unmount
## Side Effect
- [x] useOnceEffect: run an effect only once
- [x] useAsyncEffect: run an async effect
- [x] useOnceAsyncEffect: run an async effect only once
- [x] useFetch: makes isomorphic http requests
- [x] usePromise: use promise in function component
- [x] useImport: makes dynamic import component
- [x] useInterval: makes a safe setTimeInterval effect
- [x] useTimeout: makes a safe setTimeout effect
- [x] useRouter: configure router in function component
## State
- [x] useCountdown: tracks state of count down
- [ ] useStorage: tracks state of localstorage