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
Test and Upgrade to React 17 #24485
Comments
Is thee also an issue for using the new JSX transforms? |
Not that I know of but it was definitely on my mind :) |
This one was accomplished with #29118 🎉
This part wasn't covered. I'm wondering how much work it is to replace our custom approach with the official one. They seem to be compatible though. |
@gziolo It looks like the React update wasn't documented in any changelog which means the change in I guess it's too late to handle that now but wanted to mention anyway as a reminder for future updates. Edit: Not sure how feasible that is, but one option might be to support v16 and v17 in |
@ocean90, good catch. It's definitely a huge deal. Do you think we could downgrade React to We could also check if making React and React DOM a peer dependency would work in this case. Not sure what npm 7 would install by default in that case though. Projects using npm 6 would have to explicitly set React as a dependency. |
I haven't figured out how to make the current version of However, I have PR with entries to all CHANGELOG files in packages that ship React components: #33731. This will at least trigger a major version bump. We can try to fix @wordpress/element` v3.2.0 afterwards. |
We have new major version of packages published to npm in case they contain React components: 4e106dd. The remaining question is what we can do about |
Is it possible two create a branch based on the publish commit for |
The React team announced React 17 RC1. It’s a major release with some breaking changes.
You can read the full post here https://reactjs.org/blog/2020/08/10/react-v17-rc.html
We will be able to start upgrading React when it's stabilized and supported by react-native.
In the meantime, we can start testing and analyzing how impactful the breaking changes will be and how to roll out the release on Core.
My first impression after reading the release post is that it's not impactful and while some breakage is always possible, we might be able to upgrade to 17 easily.
Of course, a dev note will be required to announce that change on the WordPress release but I don't expect the need for extra-communication. This might be needed for future upgrades but our use of
StrictMode
is putting us in a good position since deprecated APIs are already receiving warnings.Thoughts.
The text was updated successfully, but these errors were encountered: