572

Usage

Browse functions by how commonly they are used in real projects.

Groups

Explore the catalog grouped by practical usage level.

Necessary

Core everyday primitives that cover the most common React tasks.

  • useBoolean: Hook provides opportunity to manage boolean state
  • useClickOutside: Hook to handle click events outside the specified target element(s)
  • useDidUpdate: Hook that triggers the effect callback on updates
  • useDisclosure: Hook that allows you to open and close a modal
  • useEventListener: Hook that attaches an event listener to the specified target
  • useMount: Hook that executes a callback when the component mounts
  • useUnmount: Hook that defines the logic when unmounting a component

High

Frequently useful functions that fit naturally into many production features.

Medium

Situational building blocks for recurring patterns and product-specific workflows.

Low

Niche utilities for targeted browser APIs, edge cases, and specialized interactions.

  • createEventEmitter: Creates a type-safe event emitter
  • createReactiveContext: Creates a typed context selector with optimized updates for state selection
  • createWebMCP: Creates a registry for WebMCP tools exposed by the current document
  • deepEqual: Performs a deep comparison between two values to determine if they are equivalent
  • makeDestructurable: Makes an object also iterable for array-style destructuring
  • shallowEqual: Performs a shallow comparison between two values to determine if they are equivalent
  • useActiveElement: Hook for tracking the active element
  • useAudio: Hook that manages audio playback with sprite support
  • useAutoScroll: Hook that automatically scrolls a list element to the bottom
  • useBattery: Hook for getting information about battery status
  • useBluetooth: Hook for getting information about bluetooth
  • useBroadcastChannel: Hook that provides cross-tab/window communication
  • useCompareEffect: Hook that executes an effect only when the compare function reports a dependency as changed
  • useContextMenu: Hook that handles custom context menus on desktop and long press on touch devices
  • useCounter: Hook that manages a counter
  • useCssVar: Hook that returns the value of a css variable
  • useDeviceMotion: Hook that work with device motion
  • useDeviceOrientation: Hook that provides the current device orientation
  • useDevicePixelRatio: Hook that returns the device's pixel ratio
  • useDisplayMedia: Hook that provides screen sharing functionality
  • useDocumentEvent: Hook attaches an event listener to the document object for the specified event
  • useDocumentTitle: Hook that manages the document title and allows updating it
  • useDocumentVisibility: Hook that provides the current visibility state of the document
  • useDraggable: Hook that makes an element draggable
  • useEventSource: Hook that provides a reactive wrapper for event source
  • useEyeDropper: Hook that gives you access to the eye dropper
  • useFavicon: Hook that manages the favicon
  • useFileDialog: Hook to handle file input
  • useFileSystemAccess: Hook for reading and writing local files via the File System Access API
  • useFps: Hook that measures frames per second
  • useFul: Hook that can be so useful
  • useFullscreen: Hook to handle fullscreen events
  • useGamepad: Hook for getting information about gamepad
  • useHash: Hook that manages the hash value
  • useIdle: Hook that defines the logic when the user is idle
  • useImage: Hook that load an image in the browser
  • useIsFirstRender: Hook that returns true if the component is first render
  • useKeysPressed: Hook that tracks all currently pressed keyboard keys and their codes
  • useLastChanged: Hook for records the timestamp of the last change
  • useLess: Hook that can be so useless
  • useLogger: Hook for debugging lifecycle
  • useMeasure: Hook to measure the size and position of an element
  • useMediaControls: Hook that provides controls for HTML media elements (audio/video)
  • useMemory: Hook that gives you current memory usage
  • useMouse: Hook that manages a mouse position
  • useMutationObserver: Hook that gives you mutation observer state
  • useNetwork: Hook to track network status
  • useObjectUrl: Hook that creates and revokes an object URL for a Blob or MediaSource
  • useOnce: Hook that runs an effect only once. Please do not use it in production code!
  • useOperatingSystem: Hook that returns the operating system of the current browser
  • useOrientation: Hook that provides the current screen orientation
  • useOtpCredential: Hook that creates an otp credential
  • usePageLeave: Hook what calls given function when mouse leaves the page
  • usePaint: Hook that allows you to draw in a specific area
  • useParallax: Hook to help create parallax effect
  • usePerformanceObserver: Hook that allows you to observe performance entries
  • usePictureInPicture: Hook that provides Picture-in-Picture functionality for video elements
  • usePointerLock: Hook that provides reactive pointer lock
  • usePostMessage: Hook that allows you to receive messages from other origins
  • usePreferredReducedMotion: Hook that returns the reduced motion preference
  • usePrevious: Hook that returns the previous value
  • useRaf: Hook that defines the logic for raf callback
  • useRafState: Hook that returns the value and a function to set the value
  • useRefState: Hook that returns the state reference of the value
  • useRenderCount: Hook returns count component render times
  • useRenderInfo: Hook for getting information about component rerender
  • useResizeObserver: Hook that gives you resize observer state
  • useScript: Hook that manages a script with onLoad, onError, and removeOnUnmount functionalities
  • useScroll: Hook that allows you to control scroll a element
  • useScrollIntoView: Hook that provides functionality to scroll an element into view
  • useScrollTo: Hook for scrolling to a specific element
  • useSize: Hook that observes and returns the width and height of element
  • useSpeechRecognition: Hook that provides a streamlined interface for incorporating speech-to-text functionality
  • useSpeechSynthesis: Hook that provides speech synthesis functionality
  • useSticky: Hook that allows you to detect that your sticky component is stuck
  • useSwipe: Hook that tracks swipe gestures for touch and pointer events
  • useTextSelection: Hook that manages the text selection
  • useVibrate: Hook that provides vibrate api
  • useVirtualKeyboard: Hook that manages virtual keyboard state
  • useWakeLock: Hook that provides a wake lock functionality
  • useWebMCP: Registers a WebMCP tool for the component lifecycle
  • useWebWorker: Hook that provides a reactive wrapper for a web worker
  • useWebWorkerCallback: Hook that runs a callback in a web worker without a separate worker file
  • useWindowEvent: Hook attaches an event listener to the window object for the specified event
  • useWindowFocus: Hook that provides the current focus state of the window
  • useWindowScroll: Hook that manages the window scroll position
  • useWindowSize: Hook that manages a window size