diff --git a/squarenotsquare/redux/CreateStore.js b/squarenotsquare/redux/CreateStore.js index f3cf111..c12703d 100644 --- a/squarenotsquare/redux/CreateStore.js +++ b/squarenotsquare/redux/CreateStore.js @@ -1,8 +1,13 @@ -import { applyMiddleware, compose, configureStore } from "redux"; -import thunk from 'redux-thunk'; -import {createLogger} from 'redux-logger'; -import {rootReducer} from './reducers/RootReducer'; +import { configureStore } from '@reduxjs/toolkit'; +import rootReducer from './reducers/RootReducer'; +const configStore = configureStore({ + reducer: rootReducer +}); + +export default configStore; + +/* export default () => { const middleware = []; const enhancers = []; @@ -16,4 +21,5 @@ export default () => { } return configureStore(rootReducer, compose(...enhancers)); -} \ No newline at end of file +} +*/ \ No newline at end of file