Foo() — react Function Reference
Architecture documentation for the Foo() function in infer-function-uncond-access-hoists-other-dep.tsx from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5e136984_f961_ff7e_a4f4_066ab8351c73["Foo()"] e0c45cbe_8e91_94d2_bc3a_2dd9c7b26ffc["infer-function-uncond-access-hoists-other-dep.tsx"] 5e136984_f961_ff7e_a4f4_066ab8351c73 -->|defined in| e0c45cbe_8e91_94d2_bc3a_2dd9c7b26ffc style 5e136984_f961_ff7e_a4f4_066ab8351c73 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/reduce-reactive-deps/infer-function-uncond-access-hoists-other-dep.tsx lines 5–15
function Foo({a, cond}) {
// Assume fn will be uncond evaluated, so we can safely evaluate {a.<any>,
// a.b.<any}
const fn = () => [a, a.b.c];
useIdentity(null);
const x = makeArray();
if (cond) {
x.push(identity(a.b.c));
}
return <Stringify fn={fn} x={x} shouldInvokeFns={true} />;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Foo() do?
Foo() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/reduce-reactive-deps/infer-function-uncond-access-hoists-other-dep.tsx.
Where is Foo() defined?
Foo() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/reduce-reactive-deps/infer-function-uncond-access-hoists-other-dep.tsx at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free