kea-router
TypeScript icon, indicating that this package has built-in type declarations

3.1.4 • Public • Published

NPM Version minified minified + gzipped Backers on Open Collective Sponsors on Open Collective

kea-router

Router plugin for kea. Version 3 works with kea 3.0.0 and up.

Installation

Install the package:

yarn add kea-router

Add the plugin to the list when resetting the context:

import { routerPlugin } from 'kea-router'

resetContext({
  plugins: [routerPlugin]
})

You may add extra options with routerPlugin(options), see the source for more :)

Sample usage

Read the documentation

Readme

Keywords

none

Package Sidebar

Install

npm i kea-router

Weekly Downloads

7,906

Version

3.1.4

License

MIT

Unpacked Size

130 kB

Total Files

45

Last publish

Collaborators

  • mariusandra