early-return-within-reactive-scope.js — react Source File
Architecture documentation for early-return-within-reactive-scope.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c68be5ae_0993_4ab4_681c_1899962e3765["early-return-within-reactive-scope.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] c68be5ae_0993_4ab4_681c_1899962e3765 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style c68be5ae_0993_4ab4_681c_1899962e3765 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {makeArray} from 'shared-runtime';
function Component(props) {
let x = [];
if (props.cond) {
x.push(props.a);
// oops no memo!
return x;
} else {
return makeArray(props.b);
}
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
sequentialRenders: [
// pattern 1
{cond: true, a: 42},
{cond: true, a: 42},
// pattern 2
{cond: false, b: 3.14},
{cond: false, b: 3.14},
// pattern 1
{cond: true, a: 42},
// pattern 2
{cond: false, b: 3.14},
// pattern 1
{cond: true, a: 42},
// pattern 2
{cond: false, b: 3.14},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does early-return-within-reactive-scope.js do?
early-return-within-reactive-scope.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 early-return-within-reactive-scope.js?
early-return-within-reactive-scope.js defines 1 function(s): Component.
What does early-return-within-reactive-scope.js depend on?
early-return-within-reactive-scope.js imports 1 module(s): shared-runtime.
Where is early-return-within-reactive-scope.js in the architecture?
early-return-within-reactive-scope.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/early-return-within-reactive-scope.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free