Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Router from 'react-redux-saga-router/Router'
- import Route from 'react-redux-saga-router/Route'
- import * as actions from './actions'
- const updateState = {
- article: article => actions.setCheckoutStateToBuying(article)
- }
- export const Routes = () => (
- <Routes>
- <Route name="welcome" path="/welcome" />
- <Route name="purchase" path="/buy/:article"
- updateState={updateState}
- />
- </Routes>
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement