https://github.com/react-restart/hooks
A set of utility and general-purpose React hooks.
https://github.com/react-restart/hooks
Last synced: 5 months ago
JSON representation
A set of utility and general-purpose React hooks.
- Host: GitHub
- URL: https://github.com/react-restart/hooks
- Owner: react-restart
- License: mit
- Created: 2018-10-25T17:35:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-08-01T17:29:04.000Z (11 months ago)
- Last Synced: 2025-10-24T05:55:34.381Z (8 months ago)
- Language: TypeScript
- Homepage: https://react-restart.github.io/hooks/
- Size: 3.11 MB
- Stars: 232
- Watchers: 3
- Forks: 27
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @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