Skip to main content
Version: 5

Installation

Via Package Manager​

Install the package using your preferred package manager:

pnpm 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'