useInterval Function
Deprecated in 4.15.0. Used internally.
Hook that create an interval and clears it when unloaded Reference: https://github.com/gaearon/overreacted.io/blob/master/src/pages/making-setinterval-declarative-with-react-hooks/index.md
useInterval(callback: (...args: any[]) => void, delay: number): void
Parameter | Type | Description |
---|---|---|
callback | (...args: any[]) => void | |
delay | number |
Returns - void
Defined in
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.