DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Patrik MΓ€siar
Patrik MΓ€siar

Posted on

react-keyboard-key NPM package

I created an NPM package mostly for developers, who are working with ReactJS.

The package includes Container with keydown and keyup events. The container is handling the state of pressed key information and pushes it further.

There is also created hook called useKeyboardKey which is a substitute for Container so you can use it across the whole application wherever you want, you will just use the hook function.

Package link: react-keyboard-key

Top comments (0)

🌚 Browsing with dark mode makes you a better developer by a factor of exactly 40.

It's a scientific fact.