Home / File/ early-return-nested-early-return-within-reactive-scope.js — react Source File

early-return-nested-early-return-within-reactive-scope.js — react Source File

Architecture documentation for early-return-nested-early-return-within-reactive-scope.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function Component(props) {
  let x = [];
  if (props.cond) {
    x.push(props.a);
    if (props.b) {
      const y = [props.b];
      x.push(y);
      // oops no memo!
      return x;
    }
    // oops no memo!
    return x;
  } else {
    return foo();
  }
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{cond: true, a: 42, b: 3.14}],
};

Subdomains

Functions

Frequently Asked Questions

What does early-return-nested-early-return-within-reactive-scope.js do?
early-return-nested-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-nested-early-return-within-reactive-scope.js?
early-return-nested-early-return-within-reactive-scope.js defines 1 function(s): Component.
Where is early-return-nested-early-return-within-reactive-scope.js in the architecture?
early-return-nested-early-return-within-reactive-scope.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/early-return-nested-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