Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@raddix/use-interval

gdvu78MIT1.1.2TypeScript support: included

A React hook for setting an interval.

react-hooks, react-use-interval, react-interval-hook, interval, interval-hook, use-interval, use-interval-hook, use-interval-hook-react, use-interval-react, setInterval

readme

useInterval

The useInterval hook is used to create an interval that executes a function every specified number of milliseconds. It is similar to the setInterval function, but it is declarative and can be cancelled.

Please refer to the documentation for more information.