@whisq/router
v0.1.0-alpha.10
Published
Signal-based router for Whisq applications
Downloads
946
Maintainers
Readme
@whisq/router
Signal-based router for Whisq applications.
Install
npm install @whisq/routerUsage
import { createRouter, Link } from "@whisq/router";
import { mount } from "@whisq/core";
const router = createRouter({
routes: [
{ path: "/", component: Home },
{ path: "/about", component: About },
{ path: "/users/:id", component: UserProfile },
],
});
mount(router.view(), document.getElementById("app"));Documentation
Full documentation at whisq.dev.
License
MIT
