import React from "react"; import ReactDOM from "react-dom/client"; import { Provider } from "react-redux"; import { PersistGate } from "redux-persist/integration/react"; import history from "./routes/history"; import { ConnectedRouter } from "connected-react-router"; import { GlobalStore } from "./GlobalStore"; import App from "./modules/App"; export class Main { public static start(): void { const globalStore = new GlobalStore(); const configStore = globalStore.configureStore(history); const container = document.getElementById("root"); if (!container) throw new Error("Failed to find the root element"); const root = ReactDOM.createRoot(container); root.render( , ); } } Main.start();