inital commit
This commit is contained in:
10
src/redux/store.ts
Normal file
10
src/redux/store.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {configureStore} from "@reduxjs/toolkit";
|
||||
import {useDispatch} from "react-redux";
|
||||
|
||||
export const store = configureStore({
|
||||
reducer: {}
|
||||
});
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
type AppDispatch = typeof store.dispatch;
|
||||
export const useAppDispatch = () => useDispatch<AppDispatch>();
|
||||
Reference in New Issue
Block a user