@reactra/router
npm install @reactra/router@alphaThe router runtime. Routes come from the file-based src/pages/** tree, compiled into
a manifest by @reactra/vite-plugin.
Exports (selected)
Section titled “Exports (selected)”configureRouter(options)— register the generatedROUTESand set the history mode. Called once frommain.tsx.RouteRenderer— the component that renders whichever route matches the current URL.RouteLink— a declarative navigation link.navigate(to)— programmatic navigation.
import { configureRouter, RouteRenderer } from "@reactra/router"import { ROUTES } from "./routeManifest.generated"
configureRouter({ mode: "history", routes: ROUTES })