Home / File/ map-constructor.ts — react Source File

map-constructor.ts — react Source File

Architecture documentation for map-constructor.ts, a typescript file in the react codebase. 1 imports, 0 dependents.

File typescript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c58b939b_5fdb_8cb5_cfba_205a3ade3b06["map-constructor.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  c58b939b_5fdb_8cb5_cfba_205a3ade3b06 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style c58b939b_5fdb_8cb5_cfba_205a3ade3b06 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {makeArray} from 'shared-runtime';

function useHook({el1, el2}) {
  const s = new Map();
  s.set(el1, makeArray(el1));
  s.set(el2, makeArray(el2));
  return s.size;
}

export const FIXTURE_ENTRYPOINT = {
  fn: useHook,
  params: [{el1: 1, el2: 'foo'}],
  sequentialRenders: [
    {el1: 1, el2: 'foo'},
    {el1: 2, el2: 'foo'},
  ],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does map-constructor.ts do?
map-constructor.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in map-constructor.ts?
map-constructor.ts defines 1 function(s): useHook.
What does map-constructor.ts depend on?
map-constructor.ts imports 1 module(s): shared-runtime.
Where is map-constructor.ts in the architecture?
map-constructor.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/global-types/map-constructor.ts (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