useInterval

React utility hook that calls a function at a specified interval.

hooks
delay:

count: 0

About

The interval can be paused by setting the delay to null.


The useInterval hook is based on Dan Abramov's article on overreacted.io (https://overreacted.io/making-setinterval-declarative-with-react-hooks/).

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-interval
# └──> Hook coming soon.

Usage