1 | # @restart/hooks [![npm][npm-badge]][npm]
|
2 |
|
3 | A set of utility and general-purpose React hooks.
|
4 |
|
5 | ## Install
|
6 |
|
7 | ```sh
|
8 | npm install @restart/hooks
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```js
|
14 | import useInterval from '@restart/hooks/useInterval'
|
15 |
|
16 | useInterval(() => 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
|