From fe0ddc5824d4ce64ac377118af04eebc1d0be735 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 23 Jan 2026 19:19:54 -0500 Subject: [PATCH] feature/IO-3499-React-19 - Checkpoint --- client/src/index.jsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/client/src/index.jsx b/client/src/index.jsx index e19836f19..6a87f770e 100644 --- a/client/src/index.jsx +++ b/client/src/index.jsx @@ -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(); +const rootEl = document.getElementById("root"); + +if (!rootEl) throw new Error('Missing root element:
'); + +const appTree = import.meta.env.DEV ? ( + + + +) : ( + +); + +ReactDOM.createRoot(rootEl).render(appTree); reportWebVitals();