@miizzo/effector-router
v0.1.7
Published
route your web application with effector
Downloads
5
Readme
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'),
});