## Description When trying to use the *HotKeys* component, we got a warning due to this library still uses old react lifecycle. Ideally, we can use react hooks with the first stable version which is v17.0.2. The component I'm having the warning in is the *HotKeys*, https://github.com/ruanyl/react-keyboard/blob/ee93d3a2f344f0f84dc48415454be6ecfb6723e2/src/HotKeys.tsx ## Usage ``` import { HotKeys } from 'react-keyboard'; ... return ( <HotKeys keyMap={keyMap} handlers={handleKeys}> {children} </HotKeys> ); ``` ## Screenshots <img width="1065" alt="Screen Shot 2021-11-18 at 11 54 02" src="https://user-images.githubusercontent.com/6934447/142460557-8c315147-5a8a-4495-8c6e-3a438413c503.png">
Description
When trying to use the HotKeys component, we got a warning due to this library still uses old react lifecycle. Ideally, we can use react hooks with the first stable version which is v17.0.2.
The component I'm having the warning in is the HotKeys, https://github.com/ruanyl/react-keyboard/blob/ee93d3a2f344f0f84dc48415454be6ecfb6723e2/src/HotKeys.tsx
Usage
Screenshots