Home / File/ props-method-dependency.js — react Source File

props-method-dependency.js — react Source File

Architecture documentation for props-method-dependency.js, a javascript file in the react codebase. 2 imports, 0 dependents.

File javascript TestingUtilities Fixtures 2 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  a1634564_d98c_9008_15d2_9b65def8c114["props-method-dependency.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  a1634564_d98c_9008_15d2_9b65def8c114 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  a1634564_d98c_9008_15d2_9b65def8c114 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style a1634564_d98c_9008_15d2_9b65def8c114 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @compilationMode:"infer"
import {useMemo} from 'react';
import {ValidateMemoization} from 'shared-runtime';

function Component(props) {
  const x = useMemo(() => props.x(), [props.x]);
  return <ValidateMemoization inputs={[props.x]} output={x} />;
}

const f = () => ['React'];
const g = () => ['Compiler'];
export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{x: () => ['React']}],
  sequentialRenders: [{x: f}, {x: g}, {x: g}, {x: f}],
};

Subdomains

Functions

Dependencies

  • react
  • shared-runtime

Frequently Asked Questions

What does props-method-dependency.js do?
props-method-dependency.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 props-method-dependency.js?
props-method-dependency.js defines 3 function(s): Component, f, g.
What does props-method-dependency.js depend on?
props-method-dependency.js imports 2 module(s): react, shared-runtime.
Where is props-method-dependency.js in the architecture?
props-method-dependency.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/props-method-dependency.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