Skip to content

raxjs/rax-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rax Hooks

🥳 Contains rax hooks that are used very frequently.

Component Life Cycle

  • useMountedState: get component mount state

  • useMounted: calls a function after the component is mounted

  • useUnmount: calls a function when the component will unmount

Side Effect

  • useOnceEffect: run an effect only once

  • useAsyncEffect: run an async effect

  • useOnceAsyncEffect: run an async effect only once

  • useFetch: makes isomorphic http requests

  • usePromise: use promise in function component

  • useImport: makes dynamic import component

  • useInterval: makes a safe setTimeInterval effect

  • useTimeout: makes a safe setTimeout effect

  • useRouter: configure router in function component

State

  • useCountdown: tracks state of count down

  • useStorage: tracks state of localstorage

About

🥳 Contains rax hooks that are used very frequently.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •