useHotkeys(keys, callback) npm i react-hotkeys-hook A React hook for using keyboard shortcuts in components in a declarative way. Quick Start The easiest way to use the hook. import{useHotkeys}from'react-hotkeys-hook'exportconstExampleComponent=()=>{const[count,setCount]=useState(0)us...
Install via NPM:yarn add reakeys Then in your component, just add the useHotkeys hook and specify your keys like:import React, { FC } from 'react'; import { useHotkeys } from 'reakeys'; export const YourComponent: FC = () => { useHotkeys([ { name: 'Dashboard', keys: '...
Install via NPM:yarn add reakeys Then in your component, just add the useHotkeys hook and specify your keys like:import React, { FC } from 'react'; import { useHotkeys } from 'reakeys'; export const YourComponent: FC = () => { useHotkeys([ { name: 'Dashboard', keys: '...