Home / File/ interdependent-across-if.js — react Source File

interdependent-across-if.js — react Source File

Architecture documentation for interdependent-across-if.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function compute() {}
function foo() {}
function Foo() {}

/**
 * Should produce 1 scope:
 *
 * return: inputs=props.a & props.b & props.c; outputs=return
 *   const a = compute(props.a);
 *   const b = compute(props.b);
 *   if (props.c)
 *     foo(a, b);
 *   return = <Foo a={a} b={b} />
 */
function Component(props) {
  const a = compute(props.a);
  const b = compute(props.b);
  if (props.c) {
    foo(a, b);
  }
  return <Foo a={a} b={b} />;
}

Subdomains

Frequently Asked Questions

What does interdependent-across-if.js do?
interdependent-across-if.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 interdependent-across-if.js?
interdependent-across-if.js defines 4 function(s): Component, Foo, compute, foo.
Where is interdependent-across-if.js in the architecture?
interdependent-across-if.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/interdependent-across-if.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