-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 to React 19 #2172
base: master
Are you sure you want to change the base?
Migrate to React 19 #2172
Commits on Nov 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fa5a606 - Browse repository at this point
Copy the full SHA fa5a606View commit details -
Set
@types/react
and@types/react-dom
to temporary types packages- We set the `@types/react` and `@types/react-dom` package resolutions to `npm:types-react` and `npm:types-react-dom` according to the React 19 migration guide.
Configuration menu - View commit details
-
Copy full SHA for ae5bc1c - Browse repository at this point
Copy the full SHA ae5bc1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b0f265 - Browse repository at this point
Copy the full SHA 7b0f265View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4974788 - Browse repository at this point
Copy the full SHA 4974788View commit details -
Replace the now removed
ReactDOM
methods- `ReactDOM.render` and `ReactDOM.unmountComponentAtNode` have been removed in React 19. This commit replaces their usage with `rtl.render` and `rtl.cleanup` as recommended in the React 19 migration guide.
Configuration menu - View commit details
-
Copy full SHA for 478c92b - Browse repository at this point
Copy the full SHA 478c92bView commit details -
Replace
@testing-library/react-hooks
with@testing-library/react
- The `renderHook` method in `@testing-library/react-hooks` has now been moved to `@testing-library/react`. This commit updates imports and usages of the `renderHook` function to comply with the new syntax requirements in the [react-hooks-testing-library migration guide](https://github.com/testing-library/react-hooks-testing-library/blob/chore/migration-guide/MIGRATION_GUIDE.md#waitfornextupdate).
Configuration menu - View commit details
-
Copy full SHA for 9a319a4 - Browse repository at this point
Copy the full SHA 9a319a4View commit details -
Update
react-is
implementation- `react-is` has changed the `REACT_ELEMENT_TYPE` symbol from `'react.element'` to `'react.transitional.element'`. We want our changes to be non-breaking and backwards-compatible so we conditionally set the `REACT_ELEMENT_TYPE` based on the detected version of React.
Configuration menu - View commit details
-
Copy full SHA for cf93795 - Browse repository at this point
Copy the full SHA cf93795View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fcc65f - Browse repository at this point
Copy the full SHA 7fcc65fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f28716 - Browse repository at this point
Copy the full SHA 7f28716View commit details -
Remove unnecessary
rtl.cleanup
calls- According to `@testing-library/react` docs, the `cleanup` function is called automatically during the `afterEach` hook and there is no need to manually call it.
Configuration menu - View commit details
-
Copy full SHA for 9a672f5 - Browse repository at this point
Copy the full SHA 9a672f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 827daba - Browse repository at this point
Copy the full SHA 827dabaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 676b1fe - Browse repository at this point
Copy the full SHA 676b1feView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbd7fc8 - Browse repository at this point
Copy the full SHA bbd7fc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33a5ac5 - Browse repository at this point
Copy the full SHA 33a5ac5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa04a52 - Browse repository at this point
Copy the full SHA fa04a52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 338c82e - Browse repository at this point
Copy the full SHA 338c82eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11934c2 - Browse repository at this point
Copy the full SHA 11934c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2988d21 - Browse repository at this point
Copy the full SHA 2988d21View commit details -
Configuration menu - View commit details
-
Copy full SHA for a37665e - Browse repository at this point
Copy the full SHA a37665eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 439030f - Browse repository at this point
Copy the full SHA 439030fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f05bf2f - Browse repository at this point
Copy the full SHA f05bf2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5acc575 - Browse repository at this point
Copy the full SHA 5acc575View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0701ac - Browse repository at this point
Copy the full SHA e0701acView commit details -
Configuration menu - View commit details
-
Copy full SHA for f80d281 - Browse repository at this point
Copy the full SHA f80d281View commit details
Commits on Nov 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5f46b99 - Browse repository at this point
Copy the full SHA 5f46b99View commit details