Access React's global environment variables and the DevTools hook.
npm install @nrbx/react-globalsimport ReactGlobals from "@nrbx/react-globals";
ReactGlobals.__DEV__ = true;
ReactGlobals.__PROFILE__ = true;| Flag | Purpose |
|---|---|
__DEV__ |
Enable development warnings |
__PROFILE__ |
Enable the DevTools profiler |
__EXPERIMENTAL__ |
Enable experimental features |
__REACT_DEVTOOLS_GLOBAL_HOOK__ |
The DevTools global hook |
__REACT_DEVTOOLS_ATTACH__ |
DevTools attach callback |
__COMPAT_WARNINGS__ |
Enable Roact compatibility warnings |
Built with roblox-ts

