Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import Router from 'react-redux-saga-router/Router'
  2. import Route from 'react-redux-saga-router/Route'
  3. import * as actions from './actions'
  4.  
  5. const updateState = {
  6. article: article => actions.setCheckoutStateToBuying(article)
  7. }
  8.  
  9. export const Routes = () => (
  10. <Routes>
  11. <Route name="welcome" path="/welcome" />
  12. <Route name="purchase" path="/buy/:article"
  13. updateState={updateState}
  14. />
  15. </Routes>
  16. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement