Skip to content

Deps: upgrade React from 18 to 19 on React Router 7 #284

Open

Description

@wab

What to build

Upgrade react, react-dom and their types from 18 to 19, while staying on React Router 7, which accepts React 19. This is the first step towards React Router 8, which requires React 19.2.7 or later.

No security finding is involved. React Router 7 still receives security patches (7.18.4 shipped this month). Bring this chain forward if React Router 7 stops receiving them.

Check that the UI libraries accept React 19: Ark UI, framer-motion, react-snap-carousel, react-remove-scroll. Migrate the components that use forwardRef to ref as a prop.

Acceptance criteria

  • react, react-dom, @types/react and @types/react-dom are on 19.2.7 or later
  • No component uses forwardRef any more
  • The browser console shows no hydration warning on the home page, a challenge page and a blog post
  • check, typecheck, unit tests and e2e tests pass

Blocked by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageMaintainer needs to evaluate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions