Read Me
Official website: router5.js.org
router5 is a framework and view library agnostic router.
view / state separation: router5 processes routing instructions and outputs state updates.
universal: works client-side and server-side
simple: define your routes, start to listen to route changes
flexible: you have control over transitions and what happens on transitions
import createRouter from 'router5'
import browserPlugin from 'router5-plugin-browser'
const routes = [
{ name: 'home', path: '/' },
{ name: 'profile', path: '/profile' }
]
const router = createRouter(routes)
router.usePlugin(browserPlugin())
router.start()With React (hooks)
With observables
Your router instance is compatible with most observable libraries.
Examples
Docs
Integration
Last updated