Home / File/ repro-missing-dependency-if-within-while.js — react Source File

repro-missing-dependency-if-within-while.js — react Source File

Architecture documentation for repro-missing-dependency-if-within-while.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

const someGlobal = true;
export default function Component(props) {
  const {b} = props;
  const items = [];
  let i = 0;
  while (i < 10) {
    if (someGlobal) {
      items.push(<div key={i}>{b}</div>);
      i++;
    }
  }
  return <>{items}</>;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{b: 42}],
  sequentialRenders: [
    {b: 0},
    {b: 0},
    {b: 42},
    {b: 42},
    {b: 0},
    {b: 42},
    {b: 0},
    {b: 42},
  ],
};

Subdomains

Functions

Frequently Asked Questions

What does repro-missing-dependency-if-within-while.js do?
repro-missing-dependency-if-within-while.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 repro-missing-dependency-if-within-while.js?
repro-missing-dependency-if-within-while.js defines 1 function(s): Component.
Where is repro-missing-dependency-if-within-while.js in the architecture?
repro-missing-dependency-if-within-while.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-missing-dependency-if-within-while.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