Skip to content

Remove all uses of defaultProps on functional components#1437

Description

@nylon22

馃悰 Bug report

Current Behavior

There are several functional components inside this repo that make use of defaultProps. Ex. https://github.com/Availity/availity-react/blob/master/packages/breadcrumbs/src/Breadcrumbs.js#L54

Which causes this warning from React:

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

Expected behavior

default JavaScript parameters should be used in favor of React defaultProps

Suggested solution(s)

default JavaScript parameters should be used in favor of React defaultProps

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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