Loading...
Loading...
Apply react-use hooks where appropriate to build concise, maintainable React features.
npx skill4agent add arindampradhan/react-use-skills react-use-hooksInvocationAUTOEXTERNALEXPLICIT_ONLYNOTE User instructions in the prompt ormay override a hook's defaultAGENTS.mdrule.Invocation
DescriptionReference./references| Hook | Description | Invocation |
|---|---|---|
| laptopL: 1440, laptop: 1024, tablet: 768 | AUTO |
| React sensor hook that tracks battery status. | AUTO |
| React sensor hook that tracks user's geographic location. This hook accepts [position options](https | AUTO |
| React sensor hook that tracks browser's location hash. | AUTO |
| React UI sensor hooks that track if some element is being hovered | AUTO |
| Tracks mouse hover state using a ref (more direct than useHover). | AUTO |
| React sensor hook that tracks if user on the page is idle. | AUTO |
| React sensor hook that tracks the changes in the intersection of a target element with an ancestor e | AUTO |
| React UI sensor hook that executes a | AUTO |
| React UI sensor hook that detects complex key combos like detecting when | EXTERNAL |
| React UI sensor hook that detects when the user is pressing a specific | AUTO |
| This hook fires | AUTO |
| React sensor hook that tracks brower's location. | AUTO |
| React sensor hook that fires a callback after long pressing. | AUTO |
| React sensor hook that tracks dimensions of an HTML element using the [Resize Observer API](https:// | AUTO |
| React sensor hook that tracks state of a CSS media query. | AUTO |
| React sensor hook that tracks connected hardware devices. | AUTO |
| React sensor hook that uses device's acceleration sensor to track its motions. | AUTO |
| React sensor hooks that re-render on mouse position changes. | AUTO |
| Extended mouse tracking with options for bounded coordinates and hover-only tracking. | AUTO |
| React Hook to get deltaY of mouse scrolled in window. | AUTO |
| Tracks the state of browser's network connection. | AUTO |
| React sensor hook that tracks screen orientation of user's device. | AUTO |
| React sensor hook that fires a callback when mouse leaves the page. | AUTO |
| React sensor hook that tracks the changes in pointer touch events and detects value of pinch differe | AUTO |
| React sensor hook that tracks state of mouse "scrubs" (or "scratches"). | AUTO |
| React sensor hook that re-renders when the scroll position in a DOM element changes. | AUTO |
| Hook that will return current browser's scrollbar width. | AUTO |
| React sensor hook that keeps track of whether the user is scrolling or not. | AUTO |
| React sensor hook that tracks browser's location search param. | AUTO |
| React sensor hook that tracks size of an HTML element. | AUTO |
| React sensor hook that fires a callback when user starts typing. Can be used | AUTO |
| React sensor hook that re-renders on window scroll. | AUTO |
| React sensor hook that tracks dimensions of the browser window. | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| Creates | AUTO |
| React UI hook that triggers a callback when user | AUTO |
| React UI hook that changes [CSS dynamically][gen-5]. Works like "virtual CSS" — | AUTO |
| Triggers on file, link drop and copy-paste. | AUTO |
| Display an element full-screen, optional fallback for fullscreen video on iOS. | AUTO |
| React UI hook that provides slide behavior over any HTML element. Supports both mouse and touch even | AUTO |
| React UI hook that synthesizes human voice that speaks a given string. | AUTO |
| React UI hook to provide physical feedback with device vibration hardware using the [Vibration API]( | AUTO |
| Creates | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| Same as | AUTO |
| A declarative interval hook based on [Dan Abramov's article on overreacted.io](https://overreacted.i | AUTO |
| React animation hook that forces component to re-render on each | AUTO |
| React animation hook that updates a single numeric value over time according | EXTERNAL |
| Re-renders the component after a specified number of milliseconds. | AUTO |
| Calls given function after specified amount of milliseconds. | AUTO |
| React animation hook that tweens a number between 0 and 1. | AUTO |
| React utility hook that returns a function that forces component | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| React hook that resolves an | AUTO |
| React hook that returns state and a callback for an | AUTO |
| Uses | AUTO |
| React side-effect hook that shows browser alert when user try to reload or close the page. | AUTO |
| React hook that returns the current value of a | AUTO |
| Copy text to a user's clipboard. | AUTO |
| React hook that delays invoking a function until after wait milliseconds have elapsed since the last | AUTO |
| React side-effect hook that returns an error dispatcher. | AUTO |
| React side-effect hook sets the favicon of the page. | AUTO |
| React side-effect hook that manages a single | AUTO |
| React side-effect hook that locks scrolling on the body element. Useful for modal and other overlay | AUTO |
| React side-effect hook to query permission status of browser APIs. | AUTO |
| This hook call given function within the RAF loop without re-rendering parent component. | AUTO |
| React side-effect hook that manages a single | AUTO |
| React hooks that throttle. | AUTO |
| React hook that invokes a function and then delays subsequent function calls until after wait millis | AUTO |
| React side-effect hook that sets title of the page. | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| A modified useEffect hook that accepts a comparator which is used for comparison on dependencies ins | AUTO |
| A modified useEffect hook that is using deep comparison on its dependencies instead of reference equ | AUTO |
| React lifecycle hook that runs an effect only once. | AUTO |
| React sensor hook that subscribes a | AUTO |
| | AUTO |
| React lifecycle hook that call | AUTO |
| React lifecycle hook that console logs parameters as component transitions through lifecycles. | AUTO |
| React lifecycle hook that calls a function after the component is mounted. Use | AUTO |
| > NOTE!: despite having | AUTO |
| React Lifecycle hook that returns a helper function for wrapping promises. | AUTO |
| A modified useEffect hook that is using shallow comparison on each of its dependencies instead of re | AUTO |
| React lifecycle hook that calls a function when the component will unmount. Use | AUTO |
| A life-cycle hook that provides a higher order promise that does not resolve if component un-mounts. | AUTO |
| React effect hook that ignores the first invocation (e.g. on mount). The signature is exactly the sa | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| A React hook that creates a globally shared state. | AUTO |
| Hook factory, receives a function to be memoized, returns a memoized React hook, | AUTO |
| Factory for reducer hooks with custom middleware with an identical API as [React's | AUTO |
| Factory for react context hooks that will behave just like [React's | AUTO |
| Factory for react context hooks that will behave just like [React's | AUTO |
| Alias for | AUTO |
| React state hook that tracks a numeric value. | AUTO |
| React state hook that returns the default value when state is null or undefined. | AUTO |
| Returns | AUTO |
| React state hook that returns state getter function instead of | AUTO |
| A mix of | AUTO |
| React state hook that returns the latest state as described in the [React hooks FAQ](https://reactjs | AUTO |
| Tracks an array and provides methods to modify it. | AUTO |
| React state hook that tracks a value of an object. | AUTO |
| A lot like the standard | AUTO |
| React hook that simplifies the | AUTO |
| Each time any of given states changes - validator function is invoked. | AUTO |
| Alias for | AUTO |
| React state hook that tracks the latest value of an | EXTERNAL |
| React state hook that returns the previous state as described in the [React hooks FAQ](https://react | AUTO |
| Just like | AUTO |
| React state hook implements simple FIFO queue. | AUTO |
| React state hook that only updates state in the callback of [ | AUTO |
| Tracks component's renders count including the first render. | AUTO |
| React state hook that tracks a [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referen | AUTO |
| React state hook that creates | AUTO |
| Provides handles for circular iteration over states list. | AUTO |
| Each time given state changes - validator function is invoked. | AUTO |
| Stores defined amount of previous state values and provides handles to travel through them. | AUTO |
| React state hook that tracks value of a boolean. | AUTO |
| Hook | Description | Invocation |
|---|---|---|
| React hook to use a ForwardedRef safely. | AUTO |