Home / File/ repro-array-filter-known-nonmutate-Boolean.tsx — react Source File

repro-array-filter-known-nonmutate-Boolean.tsx — react Source File

Architecture documentation for repro-array-filter-known-nonmutate-Boolean.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.

File tsx TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  dd4a217a_c1d3_bd11_af91_03f796beff6e["repro-array-filter-known-nonmutate-Boolean.tsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  dd4a217a_c1d3_bd11_af91_03f796beff6e --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style dd4a217a_c1d3_bd11_af91_03f796beff6e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {Stringify, useIdentity} from 'shared-runtime';

/**
 * Also see repro-array-map-known-mutate-shape, which calls a global function
 * that mutates its operands.
 */
function Component({value}) {
  const arr = [{value: 'foo'}, {value: 'bar'}, {value}];
  useIdentity(null);
  const derived = arr.filter(Boolean);
  return (
    <Stringify>
      {derived.at(0)}
      {derived.at(-1)}
    </Stringify>
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{value: 5}],
  sequentialRenders: [{value: 5}, {value: 6}, {value: 6}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does repro-array-filter-known-nonmutate-Boolean.tsx do?
repro-array-filter-known-nonmutate-Boolean.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in repro-array-filter-known-nonmutate-Boolean.tsx?
repro-array-filter-known-nonmutate-Boolean.tsx defines 1 function(s): Component.
What does repro-array-filter-known-nonmutate-Boolean.tsx depend on?
repro-array-filter-known-nonmutate-Boolean.tsx imports 1 module(s): shared-runtime.
Where is repro-array-filter-known-nonmutate-Boolean.tsx in the architecture?
repro-array-filter-known-nonmutate-Boolean.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types/repro-array-filter-known-nonmutate-Boolean.tsx (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types).

Analyze Your Own Codebase

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

Try Supermodel Free