carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Update React packages to include support for React 18

Open joshblack opened this issue 2 years ago • 0 comments

React shipped their v18 major release earlier this month. We would like to include support for this version in the carbon-components-react, @carbon/react, and @carbon/icons-react packages in v11. In order to do so, we will need to:

  • [ ] https://github.com/carbon-design-system/carbon/issues/10184
  • [ ] Update the package.json for each package to include the 18.x range
  • [ ] Update the resolutions within the project to force versions to v18
  • [ ] Update the storybook to correctly use createRoot and StrictMode
  • [ ] Find an appropriate way in CI to test behavior in v17 and v18

In the meantime, you can force the install of React 18 by either:

  • Install using --legacy-peer-deps
  • Manually update the dependency version in your project's node_modules

These workarounds are not a statement of support - there may be compatibility issues with React 18.

joshblack avatar Apr 28 '22 16:04 joshblack