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

chore: update React to v18.x #5887

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matuzalemsteles
Copy link
Member

This is an ongoing PR to update React to v18. Since Clay packages are distributed without react dependencies and react-dom only as peer dependencies, this will not affect those using version 16, but we also cannot yet use the new features of React 18, but we can implement compatibility for some like useId.

To migrate, the first step now would be to update all tests that are still using react-test-renderer to jest, there are still some left.

The second step would be to add StrictMode to fix component errors and misuse of useEffect that may exist.

The third step is to add compatibility for some new features like useId so that it works for both v16 and v18.

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.

1 participant