hooks icon indicating copy to clipboard operation
hooks copied to clipboard

A set of utility and general-purpose React hooks.

@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)