carbon
carbon copied to clipboard
Update React packages to include support for React 18
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
andStrictMode
- [ ] In Storybook v7 the new React Root API is automatically used
- [ ] 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.