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

21 lines
370 B
Markdown

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