-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Add support for React 18 #1031
Conversation
BREAKING CHANGE: If you have React 18 installed, we'll use the new [`createRoot` API](reactwg/react-18#5) by default which comes with a set of [changes while also enabling support for concurrent features](reactwg/react-18#4). To can opt-out of this change by using `render(ui, { legacyRoot: true } )`. But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.
Co-authored-by: Philipp Fritsche <[email protected]>
BREAKING CHANGE: Drop support for React < 18.0.0-rc.1
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 519a8c4:
|
Codecov Report
@@ Coverage Diff @@
## main #1031 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 142 169 +27
Branches 30 35 +5
=========================================
+ Hits 142 169 +27
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this 👍
Merge away! Thanks!
🎉 This PR is included in version 13.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: Drop support for React 17 and earlier. We'll use the new
createRoot
API by default which comes with a set of changes while also enabling support for concurrent features.To can opt-out of this change by using
render(ui, { legacyRoot: true } )
. But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.What:
Support React 18 in our stable release
Why:
React 18 stable was released yesterday
How:
Squash
alpha
intomain
to preserve.Checklist:
docs site: docs: Add
render
#legacyRoot
testing-library-docs#1034