-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels
