redux-routes

1.0.3 • Public • Published

redux-routes

Simple redux history middleware.

Doesn't provide a reducer because reducers are application-specific. You'll want to save the payload (the action.payload.url) somewhere in your store so you can use it for routing.

There's nothing new here, @callum did all the work in redux-routing. This module just pulls out the History API and the middleware from that module.

Install

npm install redux-routes

Example

var History = require('redux-routes')
var Socrates = require('socrates')
var navigate = History.navigate

var store = Socrates([
  History()
])

store.dispatch(navigate('/blog'))

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i redux-routes

Weekly Downloads

4

Version

1.0.3

License

none

Last publish

Collaborators

  • mattmueller