Custom Hot Keys With Vanilla JS In A React Hooks App
Skip the library and roll your own hot keys
Published in
2 min readNov 18, 2020
While working on a React app, I needed to hide a component when a user pressed the escape key.
A quick google search for “react custom hot keys”
recommended a library called react-hotkeys
.