conditional-member-expr.js — react Source File
Architecture documentation for conditional-member-expr.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
// To preserve the nullthrows behavior and reactive deps of this code,
// Forget needs to add `props.a` as a dependency (since `props.a.b` is
// a conditional dependency, i.e. gated behind control flow)
function Component(props) {
let x = [];
x.push(props.a?.b);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: null}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does conditional-member-expr.js do?
conditional-member-expr.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in conditional-member-expr.js?
conditional-member-expr.js defines 1 function(s): Component.
Where is conditional-member-expr.js in the architecture?
conditional-member-expr.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/conditional-member-expr.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free