Guest User

Untitled

a guest
Jul 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. let initialState = window.__initialState__ || '{}'
  2. initialState = transit.fromJSON(initialState)
  3. const store = configureStore(browserHistory, initialState) // configureStore adds redux reducers, middlewares and actions
  4.  
  5. const reactRootDOM = document.getElementById('react-root')
  6.  
  7. if (reactRootDOM) {
  8. ReactDOM.render(
  9. <Provider store={store}> // redux
  10. <GoustoReactApp /> // main app which includes routing
  11. </Provider>,
  12. reactRootDOM
  13. )
  14. }
Add Comment
Please, Sign In to add comment