Created
June 1, 2019 10:35
-
-
Save madan712/02365c73bf23a3997c86f4cb1b76f8d8 to your computer and use it in GitHub Desktop.
AppStore.js - Example with React, Redux and Axios API
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 AppReducer from "./AppReducer"; | |
import thunk from 'redux-thunk'; | |
const AppStore = configureStore(); | |
function configureStore() { | |
return createStore(AppReducer, applyMiddleware(thunk)); | |
} | |
export default AppStore; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment