Skip to content

Conversation

@zmjohnso
Copy link

As of December 2024, React 19 is now stable. This PR attempts to upgrade to the latest React version in order to allow for usage with React 19 projects.

I added

"resolutions": {
    "@types/react": "^19.0.0"
 }

to the top-level package.json in order to force react-copy-to-clipboard to use React types version 19. This is a temporary fix, and I'm not completely sure what the side effects will be. There is however a PR to get react-copy-to-clipboard on React 19, so once that is merged, the package can be updated and resolutions can be removed.

I probably missed some other things, but hopefully this helps as a start for the upgrade.

@vercel
Copy link

vercel bot commented Jan 10, 2025

@zmjohnso is attempting to deploy a commit to the Formspree Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2025

🦋 Changeset detected

Latest commit: f371f13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@formspree/react Major
@formspree/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jackgraddon
Copy link

This would be great to see merged soon!

ACMcInnes added a commit to ACMcInnes/addon-example that referenced this pull request Jan 20, 2025
- Formspree missing React 19 dependancy. Contact Form still functions for now: formspree/formspree-js#64
- HTML React Parser missing React 19 dependacy. Still working for now: remarkablemark/html-react-parser#1648
- Webpack is enabled but Turbo isn't? https://nextjs.org/docs/app/api-reference/config/next-config-js/turbo
- Theme Switcher now causing hydration error but still functions for now. Look at updating, or moving to Tailwind 4 beta
@bhongy
Copy link
Contributor

bhongy commented Mar 17, 2025

@zmjohnso Thank you for the PR! We just released a new major version (3.0.0) for @formspree/react to support React 19 (#70).

@bhongy bhongy closed this Mar 17, 2025
@zmjohnso zmjohnso deleted the upgrade-to-react-19 branch March 18, 2025 21:28
@zmjohnso
Copy link
Author

@zmjohnso Thank you for the PR! We just released a new major version (3.0.0) for @formspree/react to support React 19 (#70).

Working great. Thanks!

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.

3 participants