Home / File/ fbt-repro-invalid-mutable-range-destructured-prop.js — react Source File

fbt-repro-invalid-mutable-range-destructured-prop.js — react Source File

Architecture documentation for fbt-repro-invalid-mutable-range-destructured-prop.js, a javascript file in the react codebase. 3 imports, 0 dependents.

File javascript TestingUtilities Fixtures 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9ec7e18e_3614_1a95_801b_2dc62b254b3c["fbt-repro-invalid-mutable-range-destructured-prop.js"]
  2db15464_200a_540f_8671_b62de113ab09["fbt"]
  9ec7e18e_3614_1a95_801b_2dc62b254b3c --> 2db15464_200a_540f_8671_b62de113ab09
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  9ec7e18e_3614_1a95_801b_2dc62b254b3c --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  9ec7e18e_3614_1a95_801b_2dc62b254b3c --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 9ec7e18e_3614_1a95_801b_2dc62b254b3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {fbt} from 'fbt';
import {useMemo} from 'react';
import {ValidateMemoization} from 'shared-runtime';

function Component({data}) {
  const el = useMemo(
    () => (
      <fbt desc="user name">
        <fbt:param name="name">{data.name ?? ''}</fbt:param>
      </fbt>
    ),
    [data.name]
  );
  return <ValidateMemoization inputs={[data.name]} output={el} />;
}

const props1 = {data: {name: 'Mike'}};
const props2 = {data: {name: 'Mofei'}};
export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [props1],
  sequentialRenders: [props1, props2, props2, props1, {...props1}],
};

Subdomains

Functions

Dependencies

  • fbt
  • react
  • shared-runtime

Frequently Asked Questions

What does fbt-repro-invalid-mutable-range-destructured-prop.js do?
fbt-repro-invalid-mutable-range-destructured-prop.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 fbt-repro-invalid-mutable-range-destructured-prop.js?
fbt-repro-invalid-mutable-range-destructured-prop.js defines 1 function(s): Component.
What does fbt-repro-invalid-mutable-range-destructured-prop.js depend on?
fbt-repro-invalid-mutable-range-destructured-prop.js imports 3 module(s): fbt, react, shared-runtime.
Where is fbt-repro-invalid-mutable-range-destructured-prop.js in the architecture?
fbt-repro-invalid-mutable-range-destructured-prop.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/fbt-repro-invalid-mutable-range-destructured-prop.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free