Socket
Socket
Sign inDemoInstall

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


Version published
Maintainers
1
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc