Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
default: return state;
}
};
const reducer = combineReducers({
count: countReducer,
person: personReducer,
});
export const { GlobalStateProvider, dispatch, useGlobalState } = createStore(
reducer,
initialState,
compose(
applyMiddleware(reduxThunk, reduxLogger),
reduxDevToolsExt(),
),
);