If the state passed to the reducer is undefined,you must explicitly return the initial state
I’m new on react redux and i got an error like on the below and here is my store.js: import { applyMiddleware, combineReducers, createStore } from "redux" import thunk from "redux-thunk" import {composeWithDevTools} from "redux-devtools-extension" import authReducer from "./reducers/auth" const initialState = { } const reducers = combineReducers({ auth: authReducer }) const store = createStore(reducers,initialState,… Read More If the state passed to the reducer is undefined,you must explicitly return the initial state