| 1 | import React from "react"; |
| 2 | import ReactDOM from "react-dom/client"; |
| 3 | import { Provider } from "react-redux"; |
| 4 | import { PersistGate } from "redux-persist/integration/react"; |
| 5 | import App from "./App"; |
| 6 | import CustomPostHogProvider from "./hooks/CustomPostHogProvider"; |
| 7 | import "./index.css"; |
| 8 | import { persistor, store } from "./redux/store"; |
| 9 | |
| 10 | (async () => { |
| 11 | ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( |
| 12 | <React.StrictMode> |
| 13 | <Provider store={store}> |
| 14 | <PersistGate loading={null} persistor={persistor}> |
| 15 | <CustomPostHogProvider> |
| 16 | <App /> |
| 17 | </CustomPostHogProvider> |
| 18 | </PersistGate> |
| 19 | </Provider> |
| 20 | </React.StrictMode>, |
| 21 | ); |
| 22 | })(); |