@miizzo/effector-router
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

Route your web application with effector.

Installation

npm install effector history @miizzo/effector-router

Usage example

import { guard } from 'effector';
import { pushed, $pathname } from '@miizzo/effector-router';

guard({
  clock: $pathname,
  filter: (pathname) => pathname === '/',
  target: pushed.prepend(() => '/home'), 
});

Readme

Keywords

Package Sidebar

Install

npm i @miizzo/effector-router

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

22.7 kB

Total Files

11

Last publish

Collaborators

  • miizzo