getReactMajorVersion() — astro Function Reference
Architecture documentation for the getReactMajorVersion() function in version.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e75ff4c3_5138_190a_e4e9_514a524e0859["getReactMajorVersion()"] f9c1f41e_c529_cd5b_bb23_18e49f7a7055["version.ts"] e75ff4c3_5138_190a_e4e9_514a524e0859 -->|defined in| f9c1f41e_c529_cd5b_bb23_18e49f7a7055 style e75ff4c3_5138_190a_e4e9_514a524e0859 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/react/src/version.ts lines 6–12
export function getReactMajorVersion(): number {
const matches = /\d+\./.exec(ReactVersion);
if (!matches) {
return NaN;
}
return Number(matches[0]);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getReactMajorVersion() do?
getReactMajorVersion() is a function in the astro codebase, defined in packages/integrations/react/src/version.ts.
Where is getReactMajorVersion() defined?
getReactMajorVersion() is defined in packages/integrations/react/src/version.ts at line 6.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free