# hook-book

> A collection of custom React Hooks

Latest version **0.0.1-beta.22** (published 2020-12-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install hook-book
pnpm add hook-book
yarn add hook-book
bun add hook-book
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-beta.22 |
| Published | 2020-12-31 |
| First published | 2019-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 50.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tony Dinh |
| Maintainers | tonydinh |
| Keywords | react, hooks |

## Links

- npm: https://www.npmjs.com/package/hook-book
- Repository: https://github.com/tony-dinh/hook-book
- Homepage: https://github.com/tony-dinh/hook-book#readme
- Issues: https://github.com/tony-dinh/hook-book/issues
- npm.io page: https://npm.io/package/hook-book

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^17.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.1-beta.22 (latest) — 2020-12-31
- 0.0.1-beta.21 — 2020-12-30
- 0.0.1-beta.20 — 2019-07-31
- 0.0.1-beta.19 — 2019-07-31
- 0.0.1-beta.18 — 2019-07-31
- 0.0.1-beta.17 — 2019-07-21
- 0.0.1-beta.16 — 2019-07-11
- 0.0.1-beta.15 — 2019-06-25
- 0.0.1-beta.14 — 2019-06-25
- 0.0.1-beta.13 — 2019-03-11
- 0.0.1-beta.12 — 2019-03-10
- 0.0.1-beta.11 — 2019-03-09
- 0.0.1-beta.10 — 2019-03-09
- 0.0.1-beta.9 — 2019-03-09
- 0.0.1-beta.8 — 2019-03-09
- … 9 more at https://npm.io/package/hook-book/versions

## README

# 👨‍🍳 HookBook
[![npm version](https://img.shields.io/npm/v/hook-book.svg)](https://www.npmjs.com/package/hook-book)
[![npm downloads](https://img.shields.io/npm/dt/hook-book.svg)](https://www.npmjs.com/package/hook-book)
[![npm downloads](https://img.shields.io/npm/dm/hook-book.svg)](https://www.npmjs.com/package/hook-book)

A collection of [React Hook](https://reactjs.org/docs/hooks-intro.html) recipes.

## Recipes
| Recipe                                | Description                                                                   |
|---------------------------------------|-------------------------------------------------------------------------------|
| [useDebounce](./recipes/use-debounce) | A hook for debouncing the updates of a value, only using the trailing update. |
| [useDrag](./recipes/use-drag)         | A hook to make dragging elements easier.                                      |
| [useKeypress](./recipes/use-keypress) | A hook to detect when the specific keys are pressed.                          |
| [useThrottle](./recipes/use-throttle) | A hook for throttling the updates of a value.

## Installation
HookBook is supported in projects that are using the latest versions of React (16.8.0+). To install, run the following command from your CLI.
```bash
$ npm install hook-book
```

## Sample Usage
```jsx
import useKeyPress from 'hook-book/use-keypress'

const Component = () => {
    const keysPressed = useKeyPress()
    return (...)
}
```

---
_Source: https://npm.io/package/hook-book · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
