Last active
March 20, 2017 23:13
-
-
Save StevenJL/2f23f583087db16789b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createStore } from 'redux' | |
| import todoApp form './reducers' | |
| // we create the store the store by invoking `createStore` with | |
| // the root reducer. | |
| const store = createStore(todoApp) | |
| // `createStore` also takes a second option argument that is the initial state of the store. | |
| const initialState = { | |
| visibilityFilter: "SHOW ALL", | |
| todos: [] | |
| } | |
| const store = createStore(todoApp, initialState) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment