From 59bb921a393ec764f655e66f8ca471b2a0d7d3b3 Mon Sep 17 00:00:00 2001 From: pigalot Date: Mon, 10 Jan 2022 02:11:51 +0000 Subject: [PATCH] Expose React and ReactDOM as global objects --- src/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index b3b03ce0f..962bfc469 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,6 +5,8 @@ import { TTheme as Theme, ThemeEvents, refreshTheme } from "./ui/React/Theme"; import { LoadingScreen } from "./ui/LoadingScreen"; import { initElectron } from "./Electron"; initElectron(); +globalThis["React"] = React; +globalThis["ReactDOM"] = ReactDOM; ReactDOM.render(