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

JavaScript defaultProps in functional components with newer versions of React (18.3+) #3142

Open
VladimirParmonD opened this issue May 3, 2024 · 0 comments

Comments

@VladimirParmonD
Copy link

If possible, please update the components so they no longer use soon-to-be-removed default values in functional component props. This relatively small change will help to use the lib while leveraging latest React features. defaultProps can be easily replaced by default parameters.
Error is:
"Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."

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