Skip to content
zenui/react-hooks

useInterval

Run a callback on a fixed interval that pauses when the delay is null. The latest callback is always called, so it can read fresh state without restarting the timer.

Level
Basic
Since
v1.0.0
import {useInterval} from '@zenuilabs/react-hooks';
Loading demo_

More in Time & Motion