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

Deprecated defaultProps warning #931

Open
olexanax opened this issue Aug 6, 2024 · 1 comment
Open

Deprecated defaultProps warning #931

olexanax opened this issue Aug 6, 2024 · 1 comment

Comments

@olexanax
Copy link

olexanax commented Aug 6, 2024

When I try to use your lib in my React app a have some warnings in console:
"Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."

I find solution here, you can use it: https://stackoverflow.com/questions/47774695/react-functional-component-default-props-vs-default-parameters

Please, fix it, because without solution I cannot use Lib for long-term projects

@olexanax
Copy link
Author

olexanax commented Aug 7, 2024

And also I found this warning:
image

The fixes for these warnings are minor, but they allow you to use your great and easy-to-use library in new projects

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