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

Annoying defaultProps deprecation warnings #4145

Open
andlbrei opened this issue Oct 17, 2024 · 0 comments
Open

Annoying defaultProps deprecation warnings #4145

andlbrei opened this issue Oct 17, 2024 · 0 comments

Comments

@andlbrei
Copy link
Contributor

React 18.3.1 (I think) introduced warnings for deprecation of defaultProps.
These are quite annoying especially in test output, and are not possible to silence without silencing other warnings, as far as I know.

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

If you know how to get rid of only these warnings, please let me know.

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

No branches or pull requests

1 participant