@klevn/solid-router

10.0.0 • Public • Published

Solid/vite-router

Use npm: npm install @klevn/solid-router

Example router

import { router } from "@klevn/solid-router" 

router.add("/", async () => {
    return <div>Hello world</div>
})

router.add("/foo/[dynamic]", ({dynamic}) => {
    return <div>{dynamic}</div>
})

router.add("404", ({dynamic}) => {
    return <p>404</p>
})
// Important
router.update()

Readme

Keywords

none

Package Sidebar

Install

npm i @klevn/solid-router

Weekly Downloads

0

Version

10.0.0

License

ISC

Unpacked Size

8.07 kB

Total Files

8

Last publish

Collaborators

  • klevn