Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# Rax Hooks

🥳 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