Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all uses of defaultProps on functional components #1437

Open
nylon22 opened this issue Jul 10, 2024 · 0 comments
Open

Remove all uses of defaultProps on functional components #1437

nylon22 opened this issue Jul 10, 2024 · 0 comments

Comments

@nylon22
Copy link
Member

nylon22 commented Jul 10, 2024

🐛 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant