Home / File/ repro-memoize-array-with-immutable-map-after-hook.js — react Source File

repro-memoize-array-with-immutable-map-after-hook.js — react Source File

Architecture documentation for repro-memoize-array-with-immutable-map-after-hook.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
  894a4bab_14ea_c133_ee41_6553605d5924["repro-memoize-array-with-immutable-map-after-hook.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  894a4bab_14ea_c133_ee41_6553605d5924 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  style 894a4bab_14ea_c133_ee41_6553605d5924 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {useEffect, useState} from 'react';

function Component(props) {
  const x = [props.value];
  useEffect(() => {}, []);
  const onClick = () => {
    console.log(x.length);
  };
  return (
    <div onClick={onClick}>
      {x.map(item => {
        return <span key={item}>{item}</span>;
      })}
    </div>
  );
}

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

Subdomains

Functions

Dependencies

  • react

Frequently Asked Questions

What does repro-memoize-array-with-immutable-map-after-hook.js do?
repro-memoize-array-with-immutable-map-after-hook.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 repro-memoize-array-with-immutable-map-after-hook.js?
repro-memoize-array-with-immutable-map-after-hook.js defines 1 function(s): Component.
What does repro-memoize-array-with-immutable-map-after-hook.js depend on?
repro-memoize-array-with-immutable-map-after-hook.js imports 1 module(s): react.
Where is repro-memoize-array-with-immutable-map-after-hook.js in the architecture?
repro-memoize-array-with-immutable-map-after-hook.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-memoize-array-with-immutable-map-after-hook.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