Skip to content

Some react custom hooks that can be used in common apps.

Notifications You must be signed in to change notification settings

aayush301/react-custom-hooks

Repository files navigation

React custom hooks

A collection of various React hooks making the react project development easier.
Use these react hooks in any react project without having to depend on external libraries.

React hooks

  • useArray
  • useAsync
  • useAsyncState
  • useCanHover
  • useClickAnywhere
  • useDarkMode
  • useDebounce
  • useDocumentTitle
  • useEffectIf
  • useEffectOnce
  • useElementSize
  • useEventListener
  • useFetch
  • useForceUpdate
  • useGeolocation
  • useGoogleAnalytics
  • useIntersectionObserver
  • useInterval
  • useIsHover
  • useIskeyPressed
  • useIsomorphicLayoutEffect
  • useIsTyping
  • useIsVisibleXY
  • useKeyboardShortcut
  • useKeyListener
  • useLocalStorage
  • useLogger
  • useLongPressListener
  • useMedia
  • useMediaQuery
  • useMount
  • useMousePosition
  • useOnClickOutside
  • useOnlineStatus
  • useOrientation
  • usePressedKeys
  • usePreviousState
  • useScript
  • useScrollPosition
  • useSearchParam
  • useSessionStorage
  • useStateWithHistory
  • useStorage
  • useTimeout
  • useToggle
  • useUnmount
  • useUpdateEffect
  • useWindowDimensions