UNPKG

370 BMarkdownView Raw
1# @restart/hooks [![npm][npm-badge]][npm]
2
3A set of utility and general-purpose React hooks.
4
5## Install
6
7```sh
8npm install @restart/hooks
9```
10
11## Usage
12
13```js
14import useInterval from '@restart/hooks/useInterval'
15
16useInterval(() => loop(), 300, false)
17```
18
19[npm-badge]: https://img.shields.io/npm/v/@restart/hooks.svg
20[npm]: https://www.npmjs.org/package/@restart/hooks