Skip to content

Remove defaultProps from all the components #317

@raffaeler

Description

@raffaeler

Apparently react is going to deprecate defaultProps in favor od JS default parameters:
https://react.dev/learn/passing-props-to-a-component#specifying-a-default-value-for-a-prop

This is what I am seeing now with version 2.10.2:

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

I logged this as I didn't find any related issue.
HTH

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