KeyCode App

In this chapter, we will refactor a simple React app to use React Hooks.

Hooks were added to React recently (since version 16.8). They allow using state, and other React features without writing a class.

The original app is a simple webpage that responds to the key pressed and returns the JavaScript "on-key pressed" keycode. The app is based off keycode.info.

You can download the original application here, whereas the refactored react-app can be downloaded from here. In addition, a deployed version is here.