Skip to content

Upgrade to React V17.0.2 #19

@Jhonatangiraldo

Description

@Jhonatangiraldo

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

Screen Shot 2021-11-18 at 11 54 02

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions