import React from 'react'; import ReactDOM from 'react-dom/client'; import { ChakraProvider, ColorModeScript } from '@chakra-ui/react'; import { store } from './app/store'; import { Provider } from 'react-redux'; import { PersistGate } from 'redux-persist/integration/react'; import { persistStore } from 'redux-persist'; export const persistor = persistStore(store); import App from './App'; import { theme } from './app/theme'; import Loading from './Loading'; ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( } persistor={persistor}> );