React hook for visually debugging keyboard events
Demo on CodeSandbox
npm install use-key-debugger
import useKeyDebugger from 'use-key-debugger'
function App() {
const Key = useKeyDebugger()
return (
<div>
<Key />
<h2>Hit any key to see debugger</h2>
</div>
)
}
⭐ this repo
MIT © siddharthkp