Home / Function/ getWWWClassicFlagValue() — react Function Reference

getWWWClassicFlagValue() — react Function Reference

Architecture documentation for the getWWWClassicFlagValue() function in flags.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a11c0e92_8201_bff8_8890_fc5d051c550a["getWWWClassicFlagValue()"]
  9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"]
  a11c0e92_8201_bff8_8890_fc5d051c550a -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065
  style a11c0e92_8201_bff8_8890_fc5d051c550a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/flags/flags.js lines 260–282

function getWWWClassicFlagValue(flag) {
  const value = ReactFeatureFlagsWWW[flag];
  if (value === true) {
    return '✅';
  } else if (
    value === false ||
    value === null ||
    value === 'experimental' ||
    value === 'next'
  ) {
    return '❌';
  } else if (value === 'profile') {
    return '📊';
  } else if (value === 'dev') {
    return '💻';
  } else if (value === 'gk') {
    return '🧪';
  } else if (typeof value === 'number') {
    return value;
  } else {
    throw new Error(`Unexpected WWW Classic value ${value} for flag ${flag}`);
  }
}

Domain

Subdomains

Frequently Asked Questions

What does getWWWClassicFlagValue() do?
getWWWClassicFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getWWWClassicFlagValue() defined?
getWWWClassicFlagValue() is defined in scripts/flags/flags.js at line 260.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free