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

Migrate away from defaultProps #314

Closed
fabiankaegy opened this issue Apr 30, 2024 · 1 comment · Fixed by #331
Closed

Migrate away from defaultProps #314

fabiankaegy opened this issue Apr 30, 2024 · 1 comment · Fixed by #331
Labels
Good First Issue Good for newcomers Needs Help Extra attention is needed [Type] Code Quality

Comments

@fabiankaegy
Copy link
Member

prop types / defaultProps were deprecated all the way in 2017 and are now getting removed in React 19.

WordPress will likely update it's React version relatively soon after the release so we should ensure we are finally finishing the migration away from defaultProps

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

@001123
Copy link

001123 commented May 24, 2024

is any tool for migrate defaultProps ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for newcomers Needs Help Extra attention is needed [Type] Code Quality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants