Component() — react Function Reference
Architecture documentation for the Component() function in bug-capturing-func-maybealias-captured-mutate.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD aae5d9ef_c5b0_b59b_69c8_fde4999451b0["Component()"] d7e5cab9_5c06_5367_cc1e_71e1c7546b99["bug-capturing-func-maybealias-captured-mutate.ts"] aae5d9ef_c5b0_b59b_69c8_fde4999451b0 -->|defined in| d7e5cab9_5c06_5367_cc1e_71e1c7546b99 style aae5d9ef_c5b0_b59b_69c8_fde4999451b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/bug-capturing-func-maybealias-captured-mutate.ts lines 28–40
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/bug-capturing-func-maybealias-captured-mutate.ts.
Where is Component() defined?
Component() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/bug-capturing-func-maybealias-captured-mutate.ts at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free