mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
Merge pull request #2526 from pigalot/expose-react-as-global
Expose react as global
This commit is contained in:
commit
5eaf31cfce
@ -5,6 +5,8 @@ import { TTheme as Theme, ThemeEvents, refreshTheme } from "./ui/React/Theme";
|
|||||||
import { LoadingScreen } from "./ui/LoadingScreen";
|
import { LoadingScreen } from "./ui/LoadingScreen";
|
||||||
import { initElectron } from "./Electron";
|
import { initElectron } from "./Electron";
|
||||||
initElectron();
|
initElectron();
|
||||||
|
globalThis["React"] = React;
|
||||||
|
globalThis["ReactDOM"] = ReactDOM;
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Theme>
|
<Theme>
|
||||||
<LoadingScreen />
|
<LoadingScreen />
|
||||||
|
Loading…
Reference in New Issue
Block a user