0.0.1-beta.22 • Published 5 years ago
hook-book v0.0.1-beta.22
👨🍳 HookBook
A collection of React Hook recipes.
Recipes
| Recipe | Description |
|---|---|
| useDebounce | A hook for debouncing the updates of a value, only using the trailing update. |
| useDrag | A hook to make dragging elements easier. |
| useKeypress | A hook to detect when the specific keys are pressed. |
| useThrottle | 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.
$ npm install hook-bookSample Usage
import useKeyPress from 'hook-book/use-keypress'
const Component = () => {
const keysPressed = useKeyPress()
return (...)
}0.0.1-beta.22
5 years ago
0.0.1-beta.21
5 years ago
0.0.1-beta.20
7 years ago
0.0.1-beta.19
7 years ago
0.0.1-beta.18
7 years ago
0.0.1-beta.17
7 years ago
0.0.1-beta.16
7 years ago
0.0.1-beta.15
7 years ago
0.0.1-beta.14
7 years ago
0.0.1-beta.13
7 years ago
0.0.1-beta.12
7 years ago
0.0.1-beta.11
7 years ago
0.0.1-beta.10
7 years ago
0.0.1-beta.9
7 years ago
0.0.1-beta.8
7 years ago
0.0.1-beta.7
7 years ago
0.0.1-beta.6
7 years ago
0.0.1-beta.5
7 years ago
0.0.1-beta.4
7 years ago
0.0.1-beta.3
7 years ago
0.0.1-beta.2
7 years ago
0.0.1-beta.1
7 years ago
0.0.1-beta
7 years ago
0.0.1
7 years ago