Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.62 KB

README.md

File metadata and controls

56 lines (42 loc) · 2.62 KB
NN140.UK logo NN140.UK logo

Badge Badge

@nrbx/react-globals

Access React's global environment variables and the DevTools hook.

Installation

npm install @nrbx/react-globals

Usage

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


Badge Badge

NN140.UK logo NN140.UK logo