Home / File/ CircularReferences.js — react Source File

CircularReferences.js — react Source File

Architecture documentation for CircularReferences.js, a javascript file in the react codebase. 1 imports, 1 dependents.

File javascript BabelCompiler Validation 1 imports 1 dependents 2 functions

Entity Profile

Dependency Diagram

graph LR
  73bdd2d9_8ba6_ed8a_771f_3f1651763ceb["CircularReferences.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  73bdd2d9_8ba6_ed8a_771f_3f1651763ceb --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  ee521c92_6aea_ed48_b3b2_59ca21d468e3["InspectableElements.js"]
  ee521c92_6aea_ed48_b3b2_59ca21d468e3 --> 73bdd2d9_8ba6_ed8a_771f_3f1651763ceb
  style 73bdd2d9_8ba6_ed8a_771f_3f1651763ceb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

import * as React from 'react';

const arrayOne: $FlowFixMe = [];
const arrayTwo: $FlowFixMe = [];
arrayTwo.push(arrayOne);
arrayOne.push(arrayTwo);

type ObjectOne = {
  objectTwo?: ObjectTwo,
};
type ObjectTwo = {
  objectOne: ObjectOne,
};

const objectOne: ObjectOne = {};
const objectTwo: ObjectTwo = {objectOne};
objectOne.objectTwo = objectTwo;

export default function CircularReferences(): React.Node {
  return <ChildComponent arrayOne={arrayOne} objectOne={objectOne} />;
}

function ChildComponent(props: any) {
  return null;
}

Domain

Subdomains

Dependencies

  • react

Frequently Asked Questions

What does CircularReferences.js do?
CircularReferences.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in CircularReferences.js?
CircularReferences.js defines 2 function(s): ChildComponent, CircularReferences.
What does CircularReferences.js depend on?
CircularReferences.js imports 1 module(s): react.
What files import CircularReferences.js?
CircularReferences.js is imported by 1 file(s): InspectableElements.js.
Where is CircularReferences.js in the architecture?
CircularReferences.js is located at packages/react-devtools-shell/src/app/InspectableElements/CircularReferences.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shell/src/app/InspectableElements).

Analyze Your Own Codebase

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

Try Supermodel Free