Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4402

Update to React 18 - Phase 1

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • 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

              rh-ee-jaclee Jackson Lee
              jhadvig@redhat.com Jakub Hadvig
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: