Home / File/ capturing-func-no-mutate.js — react Source File

capturing-func-no-mutate.js — react Source File

Architecture documentation for capturing-func-no-mutate.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function Component({a, b}) {
  let z = {a};
  let y = {b};
  let x = function () {
    z.a = 2;
    return Math.max(y.b, 0);
  };
  x();
  return z;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{a: 2, b: 3}],
  sequentialRenders: [
    {a: 2, b: 3},
    {a: 2, b: 3},
    {a: 4, b: 3},
    {a: 4, b: 5},
  ],
};

Subdomains

Functions

Frequently Asked Questions

What does capturing-func-no-mutate.js do?
capturing-func-no-mutate.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 capturing-func-no-mutate.js?
capturing-func-no-mutate.js defines 1 function(s): Component.
Where is capturing-func-no-mutate.js in the architecture?
capturing-func-no-mutate.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/capturing-func-no-mutate.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