getWWWModernFlagValue() — react Function Reference
Architecture documentation for the getWWWModernFlagValue() function in flags.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD d0de0cc2_0836_70c0_faea_5f3d17edca02["getWWWModernFlagValue()"] 9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"] d0de0cc2_0836_70c0_faea_5f3d17edca02 -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065 style d0de0cc2_0836_70c0_faea_5f3d17edca02 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/flags/flags.js lines 241–258
function getWWWModernFlagValue(flag) {
const value = ReactFeatureFlagsWWW[flag];
if (value === true || value === 'experimental') {
return '✅';
} else if (value === false || value === null || 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 Modern value ${value} for flag ${flag}`);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getWWWModernFlagValue() do?
getWWWModernFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getWWWModernFlagValue() defined?
getWWWModernFlagValue() is defined in scripts/flags/flags.js at line 241.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free