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 551c2309_1487_279a_b9e8_c58c08878439["ComponentB()"] 373b0b7d_49ad_578d_9989_e3b6643a3c81["conditional-on-mutable.js"] 551c2309_1487_279a_b9e8_c58c08878439 -->|defined in| 373b0b7d_49ad_578d_9989_e3b6643a3c81 17797415_3c33_6aea_67d9_c7ac98c839b9["mayMutate()"] 551c2309_1487_279a_b9e8_c58c08878439 -->|calls| 17797415_3c33_6aea_67d9_c7ac98c839b9 style 551c2309_1487_279a_b9e8_c58c08878439 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/conditional-on-mutable.js lines 13–23
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/conditional-on-mutable.js.
Where is ComponentB() defined?
ComponentB() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/conditional-on-mutable.js at line 13.
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