Skip to content

Support for defaultProps will be removed from function components in a future major release. #3043

Open
@ochavarria2u

Description

@ochavarria2u

Feedback summary

Using React 18 I started to notice these warning messages for default props.
Warning: FormGroup: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

The console gets crowded with many of these messages, making it hard to check actual errors or any other important debug messages.

Improvements

Migrating default props to normal JS parameters.

CC: @adamstankiewicz

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