npm.io
0.6.315 • Published 2 months ago

@tinkoff/router

Licence
Apache-2.0
Version
0.6.315
Deps
5
Size
220 kB
Vulns
0
Weekly
0
Stars
130

@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();