Skip to content

Commit f5a90cd

Browse files
committed
Update store.md
1 parent 6805327 commit f5a90cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export { default as todos } from './todos'
3333
import { createStore, combineReducers } from 'redux';
3434
import * as reducers from './reducers/index';
3535

36-
const reducer = combineReducer(reducers);
37-
const store = createStore(reducers);
36+
const reducer = combineReducers(reducers);
37+
const store = createStore(reducer);
3838
```
3939

4040
You may optionally specify the initial state as the second argument to `createStore`. This is useful for hydrating the state of the client to match the state of a Redux application running on the server.

0 commit comments

Comments
 (0)