/react-custom-hooks

react-custom-hooks

Primary LanguageJavaScript

hooks

  • useTitle: changes title for website
  • useInput: handles input
  • useTabs: handles tabs
  • useClick: gets reference from onClick event
  • useHover: gets reference from onHover event
  • usePreventLeave: prevent user before leaving website
  • useConfirm: confirm modal
  • useBeforeLeave: catches an event when leaving broswer
  • useFadeIn: makes the content fade
  • useNetwork: handles network status (online/offline)
  • useScroll: detects window scroll value
  • useFullScreen: triggers fullscreen
  • useNotification: triggers notification API with options and title
  • useAxios: includes loading ,error, refetch state when fetching with axios