Created
November 11, 2020 23:50
-
-
Save blogcacanid/4e87cf98c1c8aa5ed225b6f765c91dab to your computer and use it in GitHub Desktop.
store.js Authentication JWT React JS Lumen 7
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
import { createStore, applyMiddleware } from "redux"; | |
import { composeWithDevTools } from "redux-devtools-extension"; | |
import thunk from "redux-thunk"; | |
import rootReducer from "./reducers"; | |
const middleware = [thunk]; | |
const store = createStore( | |
rootReducer, | |
composeWithDevTools(applyMiddleware(...middleware)) | |
); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment