LogoINDIE HACKERS

Products

Apps

About

IndieHub

Mkdirs

GitHub

  1. Products
  2. Framework
  3. Library
  4. useHooks

useHooks

A collection of modern, server-safe React hooks – from the ui.dev team

react
useHooks

Introduction

useHooks

A collection of modern, server-safe React hooks – from the ui.dev team.

Compatible with React v18.0.0+.

Standard

Install

npm i @uidotdev/usehooks

Hooks
  • useBattery
  • useClickAway
  • useCopyToClipboard
  • useCounter
  • useDebounce
  • useDefault
  • useDocumentTitle
  • useFavicon
  • useGeolocation
  • useHistoryState
  • useHover
  • useIdle
  • useIntersectionObserver
  • useIsClient
  • useIsFirstRender
  • useList
  • useLocalStorage
  • useLockBodyScroll
  • useLongPress
  • useMap
  • useMeasure
  • useMediaQuery
  • useMouse
  • useNetworkState
  • useObjectState
  • useOrientation
  • usePreferredLanguage
  • usePrevious
  • useQueue
  • useRenderCount
  • useRenderInfo
  • useScript
  • useSessionStorage
  • useSet
  • useThrottle
  • useToggle
  • useVisibilityChange
  • useWindowScroll
  • useWindowSize

Experimental

Install

npm i @uidotdev/usehooks@experimental react@experimental react-dom@experimental

Hooks
  • useContinuousRetry
  • useCountdown
  • useEventListener
  • useFetch
  • useInterval
  • useIntervalWhen
  • useKeyPress
  • useLogger
  • usePageLeave
  • useRandomInterval
  • useTimeout

Details

Website

usehooks.com

Price

Free

Github

usehooks

Submitter

javayhu

Date

2024/07/05
LogoINDIE HACKERS

Indie Hackers Tools - Explore the best products to help you ship next application faster and better

Uneed POTD1 Badge

DevHunt 1st Tool of the Week Badge
Company
  • About Site

  • Privacy Policy

  • Terms of Service

Features
  • Products

  • Applications

Links
  • Mkdirs

  • IndieHub

  • Free OG Generator

Copyright © 2024. All Rights Reserved.