xo-router
v1.0.0
Published
Vanilla SPA Router
Downloads
4
Readme
Introduction
An easy to use router for vanilla JavaScript SPAs.
Installing
npm i xo-router
Using
window.router = new Router({
routes: {
"/": "home",
"/settings": "settings"
}
})
.listen()
.on("route", (e) => {
// e.detail.route
});