Package detail

@restart/hooks

react-restart8.5mMIT0.6.2

A set of utility and general-purpose React hooks.

readme

@restart/hooks npm

A set of utility and general-purpose React hooks.

Install

npm install @restart/hooks

Usage

import useInterval from '@restart/hooks/useInterval'

useInterval(() => loop(), 300, false)