0.2.1 • Published 8 years ago

jalan v0.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

jalan Build Status Coverage Status npm version

functional routing for redux

usage example

usage

import { createStore, applyMiddleware } from 'redux';
import sagaMiddleware from 'redux-saga';
import { createHistory } from 'history';
import { createJalan } from 'jalan';

import { INDEX, NEWS, NEWS_ITEM } from '...';
import reducer from '...';

const routes = [
  { '/':          INDEX     },
  { '/news':      NEWS      },
  { '/news/{id}': NEWS_ITEM },
];

const history = createHistory();

const finalCreateStore = applyMiddleware(sagaMiddleware(
  createJalan(history, routes)
))(createStore);

const store = finalCreateStore(reducer);
0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago