Created
April 22, 2020 05:30
-
-
Save trooperandz/f8768f8428bfef021def43fda252b0fa to your computer and use it in GitHub Desktop.
React store index file
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, applyMiddleware } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import { rootReducer } from 'redux/reducers'; | |
export const configureStore = () => { | |
const store = createStore(rootReducer, applyMiddleware(thunk)); | |
return store; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment