Component() — react Function Reference
Architecture documentation for the Component() function in sequential-destructuring-both-mixed-local-and-scope-declaration.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 69394d2c_e014_4884_7660_61ee53cef120["Component()"] f5fb7aa1_e048_e1cb_f824_a6d13e425a10["sequential-destructuring-both-mixed-local-and-scope-declaration.js"] 69394d2c_e014_4884_7660_61ee53cef120 -->|defined in| f5fb7aa1_e048_e1cb_f824_a6d13e425a10 ef7ad5a7_559a_28c8_dd41_9d30f1298a4f["foo()"] 69394d2c_e014_4884_7660_61ee53cef120 -->|calls| ef7ad5a7_559a_28c8_dd41_9d30f1298a4f 3377dbae_5ce1_6976_5b8a_e34478167192["getStyles()"] 69394d2c_e014_4884_7660_61ee53cef120 -->|calls| 3377dbae_5ce1_6976_5b8a_e34478167192 style 69394d2c_e014_4884_7660_61ee53cef120 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/sequential-destructuring-both-mixed-local-and-scope-declaration.js lines 3–15
function Component(statusName) {
// status is local, text is a scope declaration
const {status, text} = foo(statusName);
// color is local, font is a scope declaration
const {color, font} = getStyles(status);
// bg is a declaration
const bg = identity(color);
return (
<div className={bg}>
<span className={font}>{[text]}</span>
</div>
);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does Component() do?
Component() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/sequential-destructuring-both-mixed-local-and-scope-declaration.js.
Where is Component() defined?
Component() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/sequential-destructuring-both-mixed-local-and-scope-declaration.js at line 3.
What does Component() call?
Component() calls 2 function(s): foo, getStyles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free