I have recently migrated from Vite to Next.js following the guide on the website, my app is served as a single client component with its React Router routing still intact, now I am looking at how I can incrementally adopt the app router, but am having some difficulties.
One problem I am facing is how to handle linking, I have a Navigation component which uses react router <Link> components, however, since the RouterProvider is only rendered for the catchall route which uses React Router, the Navigation component throws an error on the new App Router route since Link needs a RouterProvider to work. So I tried replacing the React Router <Link> with the next/link <Link>, and while it compiles now, it only works for routes that are in the App Router, for other links it will reload the page, but ultimately always choose the first route in the React Router config, does anyone have any experience with a incremental react router to app router migration?