@nrbx/react-globals
v19.0.0
Published
Access React's global environment variables
Readme
@nrbx/react-globals
Access React's global environment variables and the DevTools hook.
Installation
npm install @nrbx/react-globalsUsage
import ReactGlobals from "@nrbx/react-globals";
ReactGlobals.__DEV__ = true;
ReactGlobals.__PROFILE__ = true;Flags
| 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 |
Flags must be set before importing @nrbx/react for them to take effect.
Built with roblox-ts
