Skip to content

React support for "defaultProps" is being removed. #522

@greinard

Description

@greinard

Saw a warning recently in a downstream app that:

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

Example: https://github.com/CareEvolution/MyDataHelpsUI/blob/main/src/components/presentational/ProgressBar/ProgressBar.tsx#L22-L26

We should probably go through our existing components and convert any usage of defaultProps ahead of that change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions