@patomation/usehotkey
v0.0.1
Published
TypeScript NPM Package Starter
Downloads
11
Readme
useHotkey
Installation
npm i @patomation/usehotkey
Usage
import { useHotkey } from "@patomation/usehotkey";
const Component = (): React.ReactElement => {
useHotkey("f", () => {
// do something
});
...
};