Skip to content
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

[Bug]: useActionState example compilation error #7094

Open
gbtron opened this issue Aug 6, 2024 · 0 comments
Open

[Bug]: useActionState example compilation error #7094

gbtron opened this issue Aug 6, 2024 · 0 comments

Comments

@gbtron
Copy link

gbtron commented Aug 6, 2024

Summary

The example code under the Usage section does not compile in the preview canvas because the react and react-dom packages do not match. To ensure they are not out of sync, they can be pinned to the same version in the package.json file instead of pulled using the "canary" tag.

Page

https://react.dev/reference/react/useActionState#usage

Details

Error
Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:

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

No branches or pull requests

1 participant