@continuum-js/router
v1.0.0
Published
Continuum router — the URL as a Behavior: nested routes, typed params, lazy pages, guards
Readme
@continuum-js/router
Client-side router for Continuum: the current location is a State, route matching is a derived value, navigation is an occurrence — no effects, no re-renders.
import { Router, Link, Outlet, lazy } from "@continuum-js/router";
const routes = [
{ path: "/", component: Home },
{ path: "/users/:id", component: lazy(() => import("./User")) },
];
mount(document.body, () => <Router routes={routes} />);- Nested routes render through
<Outlet />; params come fromuseParams()as aState. lazy(loader, { fallback, error })code-splits a route component.location()exposes the current URL as aState— derive anything from it.
Docs: https://denislibs.github.io/continuum/guides/routing
