feature/IO-3499-React-19 - Checkpoint

This commit is contained in:
Dave
2026-01-23 19:19:54 -05:00
parent 14365d45d2
commit fe0ddc5824

View File

@@ -16,6 +16,7 @@ import "./utils/CleanAxios";
// import * as amplitude from "@amplitude/analytics-browser";
import { PostHogProvider } from "posthog-js/react";
import posthog from "posthog-js";
import { StrictMode } from "react";
window.global ||= window;
@@ -77,6 +78,18 @@ function App() {
);
}
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
const rootEl = document.getElementById("root");
if (!rootEl) throw new Error('Missing root element: <div id="root" />');
const appTree = import.meta.env.DEV ? (
<StrictMode>
<App />
</StrictMode>
) : (
<App />
);
ReactDOM.createRoot(rootEl).render(appTree);
reportWebVitals();