What is React Router v7 and its relationship to Remix?

Answer

In 2024, Remix v2 was merged into React Router v7 — React Router became a full-stack framework. React Router v7 is effectively Remix v3. Migrate from Remix v2: update imports from @remix-run/* to react-router, update config from remix.config.js to react-router.config.ts. React Router v7 is available in three modes: Library mode: use React Router as a client-side routing library (like before). Framework mode with SPA: file-based routing, client-side only, no SSR. Framework mode with SSR: full Remix-like server rendering with loaders and actions. This unification means the React Router community (much larger) and Remix community share the same codebase. Type safety improved significantly: LoaderFunctionArgs, useLoaderData() are now typed based on the route file using code generation. The framework mode is compatible with most Remix v2 code with minimal changes.