Home / File/ useState-unpruned-dependency.js — react Source File

useState-unpruned-dependency.js — react Source File

Architecture documentation for useState-unpruned-dependency.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  81a37535_9226_99cc_42fc_3f6ef5660e74["useState-unpruned-dependency.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  81a37535_9226_99cc_42fc_3f6ef5660e74 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 81a37535_9226_99cc_42fc_3f6ef5660e74 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useState} from 'react'; // @enableChangeDetectionForDebugging

function Component(props) {
  const w = f(props.x);
  const [x, _] = useState(w);
  return (
    <div>
      {x}
      {w}
    </div>
  );
}

function f(x) {
  return x;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{x: 42}],
  isComponent: true,
};

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

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