1.0.1 • Published 5 years ago
@alobato/use-hotkeys v1.0.1
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'))