Merge pull request #2526 from pigalot/expose-react-as-global

Expose react as global
This commit is contained in:
hydroflame 2022-01-10 13:27:39 -05:00 committed by GitHub
commit 5eaf31cfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 />