File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import 'babel-core/polyfill' ;
2
2
import React from 'react' ;
3
- import { createStore } from 'redux ' ;
3
+ import configureStore from './store/configureStore ' ;
4
4
import { Provider } from 'react-redux' ;
5
5
import App from './containers/App' ;
6
- import counterApp from './reducers' ;
7
6
8
7
const initialState = window . __INITIAL_STATE__ ;
9
8
10
- const store = createStore ( counterApp , initialState ) ;
9
+ const store = configureStore ( initialState ) ;
11
10
12
11
const rootElement = document . getElementById ( 'app' ) ;
13
12
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ import path from 'path';
2
2
import Express from 'express' ;
3
3
import qs from 'qs' ;
4
4
import React from 'react' ;
5
- import { createStore } from 'redux ' ;
5
+ import configureStore from './store/configureStore ' ;
6
6
import { Provider } from 'react-redux' ;
7
- import counterApp from './reducers' ;
8
7
import App from './containers/App' ;
9
8
import { fetchCounter } from './api/counter' ;
10
9
@@ -30,7 +29,7 @@ function handleRender(req, res) {
30
29
let initialState = { counter } ;
31
30
32
31
// Create a new Redux store instance
33
- const store = createStore ( counterApp , initialState ) ;
32
+ const store = configureStore ( initialState ) ;
34
33
35
34
// Render the component to a string
36
35
const html = React . renderToString (
You can’t perform that action at this time.
0 commit comments