Skip to content

chore: Default to React 19 #8296

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

Merged
merged 3 commits into from
May 23, 2025
Merged

chore: Default to React 19 #8296

merged 3 commits into from
May 23, 2025

Conversation

devongovett
Copy link
Member

@devongovett devongovett commented May 23, 2025

Switches to React 19 by default. Adds React 18 and canary tests to CI. Removes old storybook react builds in CI since we don't really use them. If needed, we can always build them locally. Prerequisite for RSC support for new website.

@rspbot
Copy link

rspbot commented May 23, 2025

Build successful! 🎉

// setting the version to 'next' won't work due to a yarn 1 bug
let results = JSON.parse(await run('npm', ['view', 'react@next', '--json']));
let version = results['dist-tags']['next'];
// setting the version to 'canary' won't work due to a yarn 1 bug
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarn 1 bug? Still relevant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 idk I didn't really want to change more than necessary

@devongovett devongovett added this pull request to the merge queue May 23, 2025
Merged via the queue into main with commit 8d5d5d5 May 23, 2025
30 checks passed
@devongovett devongovett deleted the react-19 branch May 23, 2025 17:21
Copy link
Contributor

@wojtekmaj wojtekmaj May 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact: you could also do:

npm pkg set resolutions.react=^18 resolutions.react-dom=^18

No custom scripts needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants