Files
dailygrubs_console/src/store/index.js
Malai Raja 7113ac0681 first
2023-11-27 17:09:27 +05:30

20 lines
533 B
JavaScript

// 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 };