Skip to main content

Quick Start

The fastest way to get you going.

Install

yarn add react-hotkeys-hook

Note: React 16.8+ is required to use Hooks.

Usage

import { useHotkeys } from 'react-hotkeys-hook';
Live Editor
Result
Loading...
Out of the box support for TypeScript

react-hotkeys-hook is written in TypeScript, so we don't have to install any additional typings.