visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

Bindings to connect the Router to Redux #423

Closed Shyam-Chen closed 6 years ago

rstacruz commented 6 years ago

this seems like something you can easily do on your own.

page('/about', () => {
  dispatch({ type: 'NAVIGATE', view: 'about' })
})

page('/user/:id', (id) => {
  dispatch({ type: 'NAVIGATE', view: 'user', id })
})