React Router

⚠

While it's possible to use React Router we recommend against it: Vike's built-in router has many features that React Router doesn't (and cannot) offer.

That said, if you have an existing app using React Router that you want to migrate to Vike, then it makes sense to start using Vike with React Router and, after your migration is done, to progressively migrate from React Router to Vike's router.

Create a new feature request if you need a React Router feature that Vike's router is missing.

We believe that the frontend routing should be completely owned by the frontend framework. Trying to seperate concerns in that regard leads to a frankenstein architecture.

Example of using Vike with React Router (shallow integration without using onBeforeRoute()):

Contribution welcome to explore deep integration using onBeforeRoute().