fyr.jsPreparing the runtime

Documentation

Routing

The optional router bundle supports hash or history routing, parameters, navigation, and route guards.

Create a hash router

Hash routing works on ordinary static hosts. History mode needs a server fallback for unknown client routes.

import { Router } from "https://cdn.jsdelivr.net/npm/@aldane-dev-create/fyr@0.1.2/dist/fyr-router.esm.js";

const router = new Router({
  mode: "hash",
  routes: [{ path: "/", component: "home" }]
});
Keep exploringSee framework examples