-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
None
-
Product / Portfolio Work
-
False
-
-
False
-
5
-
None
-
None
-
None
Currently Console is using React 17 and we should upgrade to React 18. After console has been upgraded to React 18, we will need to upgrade the types to React 18 as well.
The most impactful change in the React types was removing the implicit 'children' prop in React.FC type. We use the React.FC type extensively, and are using the implicit 'children' prop in many places, so we will need to update all of these usages.
AC
- React:
- react and react-dom dependencies are bumped to 18.x
- NON-GOAL: Use the new createRoot function. We will address this in CONSOLE-4512
- Types:
- @types/react is bumped to 18.x
- @types/react-dom is bumped to 18.x
- Types, but in a follow-up PR:
- Instances of React.FCC are switched back to React.FC
- React.FCC is removed, along with the rest of our custom react.d.ts
- depends on
-
CONSOLE-4630 Prepare console repo for @types/react 18 breaking changes
-
- To Do
-
- is blocked by
-
CONSOLE-4989 Upgrade to react-redux 8.1.3
-
- To Do
-
-
CONSOLE-4778 Bump i18next and react-i18next to the reasonably recent version
-
- Code Review
-
-
OCPBUGS-52589 @types/react mismatch with react version
-
- Closed
-
-
CONSOLE-3247 Remove react-measure dependency from the console and demo plugin
-
- Closed
-
- is depended on by
-
CONSOLE-4510 Update testing-library/react
-
- To Do
-
- is Informed by
-
CONSOLE-4997 Figure out changes needed for React 18 upgrade
-
- In Progress
-
- links to