useHooks
A collection of modern, server-safe React hooks – from the ui.dev team
Standard
Install
npm i @uidotdev/usehooks
Hooks
- useBattery
- useClickAway
- useCopyToClipboard
- useCounter
- useDebounce
- useDefault
- useDocumentTitle
- useFavicon
- useGeolocation
- useHistoryState
- useHover
- useIdle
- useIntersectionObserver
- useIsClient
- useIsFirstRender
- useList
- useLockBodyScroll
- useLongPress
- useMap
- useMeasure
- useMediaQuery
- useMouse
- useNetworkState
- useObjectState
- useOrientation
- usePreferredLanguage
- usePrevious
- useQueue
- useRenderCount
- useRenderInfo
- useScript
- useSet
- useThrottle
- useToggle
- useVisibilityChange
- useWindowScroll
- useWindowSize
Experimental
Install
npm i @uidotdev/usehooks@experimental react@experimental react-dom@experimental