Elffuss BraidHub

kikocis/continue public

627d7d0d1f85 · 708 BRawPermalink
1import React from "react";
2import ReactDOM from "react-dom/client";
3import { Provider } from "react-redux";
4import { PersistGate } from "redux-persist/integration/react";
5import App from "./App";
6import CustomPostHogProvider from "./hooks/CustomPostHogProvider";
7import "./index.css";
8import { 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})();