0.0.1-beta.22 • Published 3 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-book
Sample Usage
import useKeyPress from 'hook-book/use-keypress'
const Component = () => {
const keysPressed = useKeyPress()
return (...)
}
0.0.1-beta.22
3 years ago
0.0.1-beta.21
3 years ago
0.0.1-beta.20
5 years ago
0.0.1-beta.19
5 years ago
0.0.1-beta.18
5 years ago
0.0.1-beta.17
5 years ago
0.0.1-beta.16
5 years ago
0.0.1-beta.15
5 years ago
0.0.1-beta.14
5 years ago
0.0.1-beta.13
5 years ago
0.0.1-beta.12
5 years ago
0.0.1-beta.11
5 years ago
0.0.1-beta.10
5 years ago
0.0.1-beta.9
5 years ago
0.0.1-beta.8
5 years ago
0.0.1-beta.7
5 years ago
0.0.1-beta.6
5 years ago
0.0.1-beta.5
5 years ago
0.0.1-beta.4
5 years ago
0.0.1-beta.3
5 years ago
0.0.1-beta.2
5 years ago
0.0.1-beta.1
5 years ago
0.0.1-beta
5 years ago
0.0.1
5 years ago