Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 370 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 370 Bytes

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