@alobato/use-hotkeys
v1.0.1
Published
React hook hotkeys
Downloads
14
Readme
useDebounce
React hook hot keys
Note: This is using the new React Hooks API
You'll need to install
react
,react-dom
, etc at^16.8.0
or above
Install
yarn add @alobato/use-hotkeys
Usage
import useHotkeys from '@alobato/use-hotkeys'
...
useHotkeys('n', () => navigate('novo'))