Installation
Via Package Manager
Install the package using your preferred package manager:
- pnpm
- bun
- npm
- yarn
pnpm add react-hotkeys-hook
bun add react-hotkeys-hook
npm install react-hotkeys-hook
yarn add react-hotkeys-hook
import { useHotkeys } from 'react-hotkeys-hook'
Via CDN
You can import the ES Module directly from unpkg.com:
import { useHotkeys } from 'https://unpkg.com/react-hotkeys-hook@latest/dist/react-hotkeys-hook.esm.js'