GoScrobble/web/node_modules/@restart/hooks/README.md

21 lines
370 B
Markdown
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
# @restart/hooks [![npm][npm-badge]][npm]
A set of utility and general-purpose React hooks.
## Install
```sh
npm install @restart/hooks
```
## Usage
```js
import useInterval from '@restart/hooks/useInterval'
useInterval(() => loop(), 300, false)
```
[npm-badge]: https://img.shields.io/npm/v/@restart/hooks.svg
[npm]: https://www.npmjs.org/package/@restart/hooks