ComponentB() — react Function Reference
Architecture documentation for the ComponentB() function in conditional-on-mutable.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD b301b3fc_7ce6_ae8b_a7a9_5ae4b760a00a["ComponentB()"] fa79ce80_d648_c3a9_c4bc_ccc6be1affef["conditional-on-mutable.js"] b301b3fc_7ce6_ae8b_a7a9_5ae4b760a00a -->|defined in| fa79ce80_d648_c3a9_c4bc_ccc6be1affef 3ef58bf1_e0d8_1682_f720_5fb9bf28590f["mayMutate()"] b301b3fc_7ce6_ae8b_a7a9_5ae4b760a00a -->|calls| 3ef58bf1_e0d8_1682_f720_5fb9bf28590f style b301b3fc_7ce6_ae8b_a7a9_5ae4b760a00a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/conditional-on-mutable.js lines 14–24
function ComponentB(props) {
const a = [];
const b = [];
if (mayMutate(b)) {
a.push(props.p0);
}
if (props.p1) {
b.push(props.p2);
}
return <Foo a={a} b={b} />;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ComponentB() do?
ComponentB() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/conditional-on-mutable.js.
Where is ComponentB() defined?
ComponentB() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/conditional-on-mutable.js at line 14.
What does ComponentB() call?
ComponentB() calls 1 function(s): mayMutate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free