Expose React and ReactDOM as global objects

This commit is contained in:
pigalot 2022-01-10 02:11:51 +00:00
parent fe1f0dd0c8
commit 59bb921a39

@ -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(
<Theme>
<LoadingScreen />