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 defaultProps for React 18.3.0 #6547
Comments
How to disable defaultProps error in components? I have a lot of errors |
We'll take a look at this after we merge the docusaurus PR. We need to ensure the documentation is generated properly after the default props changes. |
Is there any update on this @kyletsang ? |
Would this fix be available for react-bootstrap version 1.x (bootstrap 4.x)? |
Unfortunately no, since that requires a heavy lift in updating RB as well as the underlying deps like |
Is your feature request related to a problem? Please describe
Warning: OverlayTrigger: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
I started seeing this warning which is related to facebook/react#16210
Describe the solution you'd like
Using JavaScript default parameters instead of defaultProps
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: