diff --git a/examples/counter/src/containers/Root.dev.js b/examples/counter/src/containers/Root.dev.js index df95ec0e..dc9e594a 100644 --- a/examples/counter/src/containers/Root.dev.js +++ b/examples/counter/src/containers/Root.dev.js @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import { render } from 'react-dom'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import Dock from 'react-dock'; diff --git a/examples/counter/src/containers/Root.js b/examples/counter/src/containers/Root.js index 35770ac1..9cea0b22 100644 --- a/examples/counter/src/containers/Root.js +++ b/examples/counter/src/containers/Root.js @@ -2,4 +2,4 @@ if (process.env.NODE_ENV === 'production') { module.exports = require('./Root.prod'); } else { module.exports = require('./Root.dev'); -} \ No newline at end of file +} diff --git a/examples/counter/src/containers/Root.prod.js b/examples/counter/src/containers/Root.prod.js index 04fc8a58..da9e91d2 100644 --- a/examples/counter/src/containers/Root.prod.js +++ b/examples/counter/src/containers/Root.prod.js @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import { render } from 'react-dom'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; diff --git a/examples/counter/src/reducers/index.js b/examples/counter/src/reducers/index.js index 41aac188..98171093 100644 --- a/examples/counter/src/reducers/index.js +++ b/examples/counter/src/reducers/index.js @@ -5,4 +5,4 @@ const rootReducer = combineReducers({ counter }); -export default rootReducer; \ No newline at end of file +export default rootReducer; diff --git a/examples/counter/src/store/configureStore.dev.js b/examples/counter/src/store/configureStore.dev.js index a2831387..4239b740 100644 --- a/examples/counter/src/store/configureStore.dev.js +++ b/examples/counter/src/store/configureStore.dev.js @@ -10,7 +10,7 @@ const finalCreateStore = compose( )(createStore); export default function configureStore(initialState) { - const store = finalCreateStore(rootReducer); + const store = finalCreateStore(rootReducer, initialState); if (module.hot) { module.hot.accept('../reducers', () => diff --git a/examples/counter/src/store/configureStore.js b/examples/counter/src/store/configureStore.js index ff31e6d1..4a4437c2 100644 --- a/examples/counter/src/store/configureStore.js +++ b/examples/counter/src/store/configureStore.js @@ -2,4 +2,4 @@ if (process.env.NODE_ENV === 'development') { module.exports = require('./configureStore.prod'); } else { module.exports = require('./configureStore.dev'); -} \ No newline at end of file +} diff --git a/examples/counter/src/store/configureStore.prod.js b/examples/counter/src/store/configureStore.prod.js index cf622db8..416d0c22 100644 --- a/examples/counter/src/store/configureStore.prod.js +++ b/examples/counter/src/store/configureStore.prod.js @@ -7,5 +7,5 @@ const finalCreateStore = compose( )(createStore); export default function configureStore(initialState) { - return finalCreateStore(rootReducer); + return finalCreateStore(rootReducer, initialState); }