Skip to content

defaultProps deprecation warning #89

@aaroncraigongithub

Description

@aaroncraigongithub

Describe the bug
The following warning appears in the console when using SlidingSidePanel:

 SlidingPanel: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

To Reproduce
AFAIK, this is common across any use of the tool.

Expected behavior
The use of defaultProps in src/index.tsx needs to be replaced with default parameters, instead.

Screenshots
n/a

Desktop (please complete the following information):
n/a -- this is a React compatibility issue

Smartphone (please complete the following information):
n/a -- this is a React compatibility issue

Additional context
none

I will open a PR for this shortly.

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