Docs
useInterval
Execute a callback function at specified intervals with useInterval, supporting dynamic delays and cleanup on unmount.
Installation
Usage
API Reference
Parameters
Name | Type | Description |
---|---|---|
callback | () => void | The function to be invoked at each interval. |
delay | null | number | The time, in milliseconds, between each invocation of the callback. Use null to clear the interval. |
Returns
void