Component() — react Function Reference
Architecture documentation for the Component() function in repro-capturing-func-maybealias-captured-mutate.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD d9c414da_f173_51b0_f8db_879d3bd90fec["Component()"] 359137ab_41b5_1e83_ec94_7b85d17f581b["repro-capturing-func-maybealias-captured-mutate.ts"] d9c414da_f173_51b0_f8db_879d3bd90fec -->|defined in| 359137ab_41b5_1e83_ec94_7b85d17f581b style d9c414da_f173_51b0_f8db_879d3bd90fec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-capturing-func-maybealias-captured-mutate.ts lines 21–33
function Component({foo, bar}: {foo: number; bar: number}) {
let x = {foo};
let y: {bar: number; x?: {foo: number}} = {bar};
const f0 = function () {
let a = makeArray(y); // a = [y]
let b = x;
// this writes y.x = x
a[0].x = b;
};
f0();
mutate(y.x);
return y;
}
Domain
Subdomains
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/repro-capturing-func-maybealias-captured-mutate.ts.
Where is Component() defined?
Component() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-capturing-func-maybealias-captured-mutate.ts at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free