Skip to content

Commit f26975c

Browse files
committed
Update todomvc example to new Redux 3.1.0 API
1 parent b0b9563 commit f26975c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/todomvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"react": "^0.14.0",
2222
"react-dom": "^0.14.0",
2323
"react-redux": "^4.0.0",
24-
"redux": "^3.0.0"
24+
"redux": "^3.1.5"
2525
},
2626
"devDependencies": {
2727
"babel-core": "^6.3.15",

examples/todomvc/store/configureStore.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { createStore } from 'redux';
22
import rootReducer from '../reducers';
33

44
export default function configureStore(initialState) {
5-
const store = (window.devToolsExtension ? window.devToolsExtension()(createStore) : createStore)(rootReducer, initialState);
5+
const store = createStore(rootReducer, initialState,
6+
window.devToolsExtension ? window.devToolsExtension() : undefined
7+
);
68

79
if (module.hot) {
810
// Enable Webpack hot module replacement for reducers

0 commit comments

Comments
 (0)