Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let initialState = window.__initialState__ || '{}'
- initialState = transit.fromJSON(initialState)
- const store = configureStore(browserHistory, initialState) // configureStore adds redux reducers, middlewares and actions
- const reactRootDOM = document.getElementById('react-root')
- if (reactRootDOM) {
- ReactDOM.render(
- <Provider store={store}> // redux
- <GoustoReactApp /> // main app which includes routing
- </Provider>,
- reactRootDOM
- )
- }
Add Comment
Please, Sign In to add comment