Created
September 5, 2017 09:39
-
-
Save chuyihuang/ff41cda6bff557674a2309d443fc9740 to your computer and use it in GitHub Desktop.
week_4_demo_2
This file contains 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
// store.js加入redux-thunk | |
import {createStore, applyMiddleware, compose} from 'redux'; | |
import thunk from 'redux-thunk'; | |
import indexReducer from './reducers/indexReducer'; | |
const store = compose(applyMiddleware(thunk))(createStore)(indexReducer); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment