Client router
API references extracted from the Gracile code base.
Examples, functions, classes, constants, type declarations…
Function: createRouter()
function createRouter(config?): GracileRouter;
Client-side routing that takes over the SSRed markup and browser navigation.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
Router instance configuration. |
Returns
GracileRouter
The client router as an observable or controllable event target.
Version
experimental
Example
./src/client-router.ts
import { createRouterfunction createRouter(config?: GracileRouterConfig): GracileRouterClient-side routing that takes over the SSRed markup and browser navigation.
} from '@gracile-labs/client-router/create';
export const routerconst router: GracileRouter = createRouterfunction createRouter(config?: GracileRouterConfig): GracileRouterClient-side routing that takes over the SSRed markup and browser navigation.
();
Defined in