Home / File/ object-access-assignment.js — react Source File

object-access-assignment.js — react Source File

Architecture documentation for object-access-assignment.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

function Component({a, b, c}) {
  // This is an object version of array-access-assignment.js
  // Meant to confirm that object expressions and PropertyStore/PropertyLoad with strings
  // works equivalently to array expressions and property accesses with numeric indices
  const x = {zero: a};
  const y = {zero: null, one: b};
  const z = {zero: {}, one: {}, two: {zero: c}};
  x.zero = y.one;
  z.zero.zero = x.zero;
  return {zero: x, one: z};
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{a: 1, b: 20, c: 300}],
  sequentialRenders: [
    {a: 2, b: 20, c: 300},
    {a: 3, b: 20, c: 300},
    {a: 3, b: 21, c: 300},
    {a: 3, b: 22, c: 300},
    {a: 3, b: 22, c: 301},
  ],
};

Subdomains

Functions

Frequently Asked Questions

What does object-access-assignment.js do?
object-access-assignment.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 object-access-assignment.js?
object-access-assignment.js defines 1 function(s): Component.
Where is object-access-assignment.js in the architecture?
object-access-assignment.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/object-access-assignment.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