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

defaultProp will be deprecated for function components soon #175

Closed
p1nta opened this issue Feb 12, 2025 · 1 comment
Closed

defaultProp will be deprecated for function components soon #175

p1nta opened this issue Feb 12, 2025 · 1 comment
Labels
invalid This doesn't seem right

Comments

@p1nta
Copy link
Contributor

p1nta commented Feb 12, 2025

[email protected] now shows a deprecation error when using defaultProps for function components.

More info with links about deprecation - https://sophiabits.com/blog/stop-using-defaultprops

Recommendation for replacement - https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-react-apis

@p1nta p1nta added the invalid This doesn't seem right label Feb 12, 2025
@donskov
Copy link
Collaborator

donskov commented Feb 13, 2025

@p1nta Thanks for reaching out. The only thing stopping me from doing this is that the auto-generation of component parameters stops working for default values. I haven't found a solution to do this automatically (.

@p1nta p1nta closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants