Skip to main content
Version: 3.x


Note: React 16.8+ is required to use Hooks.

Yarn & NPM

To install the package we use our favorite package manager.

yarn add react-hotkeys-hook

ES Module

To use the ES Module we can reference it directly from

import { useHotkeys } from '';

Direct CommonJS Module

We also have access to a development as well as a minified production bundle for CommonJS:

<script src=""/>

Now we are good to go to use the hook.