Home / File/ allow-modify-global-in-callback-jsx.js — react Source File

allow-modify-global-in-callback-jsx.js — react Source File

Architecture documentation for allow-modify-global-in-callback-jsx.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  003fdbcb_61fc_c9c2_20ef_c3a56e1143b8["allow-modify-global-in-callback-jsx.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  003fdbcb_61fc_c9c2_20ef_c3a56e1143b8 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 003fdbcb_61fc_c9c2_20ef_c3a56e1143b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @enablePreserveExistingMemoizationGuarantees:false @validateExhaustiveMemoizationDependencies:false
import {useMemo} from 'react';

const someGlobal = {value: 0};

function Component({value}) {
  const onClick = () => {
    someGlobal.value = value;
  };
  return useMemo(() => {
    return <div onClick={onClick}>{someGlobal.value}</div>;
  }, []);
}

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

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does allow-modify-global-in-callback-jsx.js do?
allow-modify-global-in-callback-jsx.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 allow-modify-global-in-callback-jsx.js?
allow-modify-global-in-callback-jsx.js defines 1 function(s): Component.
What does allow-modify-global-in-callback-jsx.js depend on?
allow-modify-global-in-callback-jsx.js imports 1 module(s): react.
Where is allow-modify-global-in-callback-jsx.js in the architecture?
allow-modify-global-in-callback-jsx.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/allow-modify-global-in-callback-jsx.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