@tinkoff/router
v0.4.174
Published
router
Downloads
5,369
Maintainers
Keywords
Readme
@tinkoff/router
Routing library. It can work both on the server and on the client. Designed primarily for building isomorphic applications.
Link to complete Router documentation - https://tramvai.dev/docs/features/routing/overview/
Installation
You need to install @tinkoff/router
:
yarn add @tinkoff/router
And connect it to the project:
import { Router, SpaHistory } from '@tinkoff/router';
import { NoSpaRouter } from '@tinkoff/router';
const spaRouter = new Router({ history: new SpaHistory() });
const noSpaRouter = new NoSpaRouter();