useHooks.iov4.1.2
DocsBlogGitHub
Hooks
No hooks found in any category.

React Hooks Collection

A comprehensive collection of 32 custom React hooks to enhance your development experience.

useArray

state

Description

A hook providing helper methods for working with array state including push, pop, filter, sort, and other common operations

useAudioRecorder

sensors

Description

A comprehensive hook for audio recording with real-time analysis using getUserMedia, MediaRecorder, and Web Audio APIs

useBarcodeDetector

sensors

Description

A hook for detecting barcodes and QR codes in images using the Barcode Detection API

useBluetooth

browser

Description

A hook for interacting with Bluetooth Low Energy devices using the Web Bluetooth API

useClipboard

browser

Description

A hook for interacting with the clipboard API to copy text content with state management

useContactPicker

browser

Description

A hook for accessing the Contact Picker API to select contacts with user permission

useCounter

state

Description

A hook for managing counter state with increment, decrement, and reset

useDebounce

utility

Description

A hook for debouncing values to delay updates until after a specified delay period

useDeepCompareEffect

lifecycle

Description

Like useEffect but with deep equality check for dependencies

useDeviceOrientation

sensors

Description

A hook for accessing device orientation data using the DeviceOrientationEvent API

useFetch

network

Description

A hook for making HTTP requests using the Fetch API with loading states and error handling

useFullscreen

dom

Description

A hook for managing fullscreen mode using the Fullscreen API

useGeolocation

sensors

Description

A hook for accessing the Geolocation API to get user's location

useHover

sensors

Description

A hook for detecting when an element is being hovered with optional callbacks and delay

useIsMobile

sensors

Description

A hook for detecting mobile devices using media queries and user agent

useIsMounted

utility

Description

A hook that returns whether the component is currently mounted

useIsTablet

sensors

Description

A hook for detecting tablet devices using media queries and user agent

useLocalStorage

state

Description

A hook for managing localStorage with React state

useMediaSession

sensors

Description

A hook for customizing media notifications and handling media control actions using the Media Session API

useNetworkInformation

sensors

Description

A hook for accessing network connection information and monitoring network changes

usePrevious

utility

Description

A hook that returns the previous value of a state or prop

useRoleGuard

auth

Description

A hook for role-based access control that redirects or hides content based on user roles

useSet

state

Description

A hook for managing and manipulating Set data structure with comprehensive methods for set operations, filtering, and state management

useStorage

browser

Description

A hook for managing browser storage quotas, usage estimation, and persistence using the Storage API

useThrottle

utility

Description

A hook for throttling values to limit updates to at most once per specified delay period

useTimeout

utilities

Description

A hook for managing timeouts with start, stop, and reset functionality

useToggle

state

Description

A hook for managing toggle state with toggle and reset

useUpdateEffect

lifecycle

Description

Like useEffect but skips the initial render

useUserMedia

sensors

Description

A hook for accessing camera and microphone using the getUserMedia API

useVibration

sensors

Description

A hook for controlling device vibration using the Vibration API

useWebShare

browser

Description

A hook for sharing content using the Web Share API to access native sharing mechanisms

useWindowSize

Browser

Description

A hook that tracks the current window dimensions and updates on resize.