Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 11, 2020 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blogcacanid/4e87cf98c1c8aa5ed225b6f765c91dab to your computer and use it in GitHub Desktop.
Save blogcacanid/4e87cf98c1c8aa5ed225b6f765c91dab to your computer and use it in GitHub Desktop.
store.js Authentication JWT React JS Lumen 7
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