inReactDevMode top-level property
bool
get
inReactDevMode
Whether the "dev" build of react.js is being used.
Useful for creating conditional logic based on whether your application is being served in a production environment.
if (inReactDevMode) {
print('Debug info that only developers should see.');
}
This value will be
trueif your HTML page includesreact.jsorreact_with_addons.js, andfalseif your HTML page includesreact_prod.jsorreact_with_react_dom_prod.js.
Implementation
bool get inReactDevMode => _inReactDevMode;