Home / Function/ create() — react Function Reference

create() — react Function Reference

Architecture documentation for the create() function in InferMutationAliasingRanges.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5d4e4d78_c36a_0635_7ac7_b280e427ea93["create()"]
  78bdc9d3_b80e_c93f_98e8_83b50c1b2b77["AliasingState"]
  5d4e4d78_c36a_0635_7ac7_b280e427ea93 -->|defined in| 78bdc9d3_b80e_c93f_98e8_83b50c1b2b77
  f3815d1a_36a1_3e3d_92f2_dbbe88f01fe3["inferMutationAliasingRanges()"]
  f3815d1a_36a1_3e3d_92f2_dbbe88f01fe3 -->|calls| 5d4e4d78_c36a_0635_7ac7_b280e427ea93
  fba5b87c_4f97_a713_10e1_65cc2cf8d8ea["createFrom()"]
  fba5b87c_4f97_a713_10e1_65cc2cf8d8ea -->|calls| 5d4e4d78_c36a_0635_7ac7_b280e427ea93
  style 5d4e4d78_c36a_0635_7ac7_b280e427ea93 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts lines 598–612

  create(place: Place, value: Node['value']): void {
    this.nodes.set(place.identifier, {
      id: place.identifier,
      createdFrom: new Map(),
      captures: new Map(),
      aliases: new Map(),
      maybeAliases: new Map(),
      edges: [],
      transitive: null,
      local: null,
      lastMutated: 0,
      mutationReason: null,
      value,
    });
  }

Domain

Subdomains

Frequently Asked Questions

What does create() do?
create() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts.
Where is create() defined?
create() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingRanges.ts at line 598.
What calls create()?
create() is called by 2 function(s): createFrom, inferMutationAliasingRanges.

Analyze Your Own Codebase

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

Try Supermodel Free