import { TypedUseSelectorHook , useSelector as baseUseSelector , } from "react-redux" ; import { createStore } from "redux" ; import { persistStore } from "redux-persist" ; import reducer from "./reducers" ; import { RootState } from "./reducers/types" ; export const useSelector = baseUseSelector ; export const store = createStore ( reducer ) ; export const persistor = persistStore ( store ) ;