🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

hook-book

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hook-book

A collection of custom React Hooks

0.0.1-beta.22
latest
Source
npm
Version published
Weekly downloads
20
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

👨‍🍳 HookBook

npm version npm downloads npm downloads

A collection of React Hook recipes.

Recipes

RecipeDescription
useDebounceA hook for debouncing the updates of a value, only using the trailing update.
useDragA hook to make dragging elements easier.
useKeypressA hook to detect when the specific keys are pressed.
useThrottleA 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 (...)
}

Keywords

react

FAQs

Package last updated on 31 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts