Routing
Links in fma-ds are react-aria links. Without a router they do a full page load, so wrap your app in React Aria's RouterProvider to send them through your router.
It takes navigate, called when a link is pressed, and useHref, which turns a path into the real href (needed when the app runs under a base path).
TanStack Router
Put it in the root route, around the <Outlet />. This site runs this same code:
React Router
Render it inside the router, because it uses the router's hooks:
Current page
RouterProvider handles navigation only. For active states, pass aria-current="page" where the component takes it, or use components that already do, such as TabNav and Pagination.