This commit is contained in:
Malai Raja
2023-11-27 17:09:27 +05:30
commit 7113ac0681
223 changed files with 56261 additions and 0 deletions

19
src/store/index.js Normal file
View File

@@ -0,0 +1,19 @@
// third-party
import { configureStore } from '@reduxjs/toolkit';
import { useDispatch as useAppDispatch, useSelector as useAppSelector } from 'react-redux';
// project import
import reducers from './reducers';
// ==============================|| REDUX TOOLKIT - MAIN STORE ||============================== //
const store = configureStore({
reducer: reducers
});
const { dispatch } = store;
const useDispatch = () => useAppDispatch();
const useSelector = useAppSelector;
export { store, dispatch, useSelector, useDispatch };