Skip to content

Instantly share code, notes, and snippets.

@madan712
Created June 1, 2019 10:35
Show Gist options
  • Save madan712/02365c73bf23a3997c86f4cb1b76f8d8 to your computer and use it in GitHub Desktop.
Save madan712/02365c73bf23a3997c86f4cb1b76f8d8 to your computer and use it in GitHub Desktop.
AppStore.js - Example with React, Redux and Axios API
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