Home / File/ SymbolKeys.js — react Source File

SymbolKeys.js — react Source File

Architecture documentation for SymbolKeys.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
  58cbbc9c_8288_86c2_9a7e_ca9c7ed97cca["SymbolKeys.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  58cbbc9c_8288_86c2_9a7e_ca9c7ed97cca --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  ee521c92_6aea_ed48_b3b2_59ca21d468e3["InspectableElements.js"]
  ee521c92_6aea_ed48_b3b2_59ca21d468e3 --> 58cbbc9c_8288_86c2_9a7e_ca9c7ed97cca
  style 58cbbc9c_8288_86c2_9a7e_ca9c7ed97cca 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 base = Object.create(Object.prototype, {
  enumerableStringBase: {
    value: 1,
    writable: true,
    enumerable: true,
    configurable: true,
  },
  // $FlowFixMe[invalid-computed-prop]
  [Symbol('enumerableSymbolBase')]: {
    value: 1,
    writable: true,
    enumerable: true,
    configurable: true,
  },
  nonEnumerableStringBase: {
    value: 1,
    writable: true,
    enumerable: false,
    configurable: true,
  },
  // $FlowFixMe[invalid-computed-prop]
  [Symbol('nonEnumerableSymbolBase')]: {
    value: 1,
    writable: true,
    enumerable: false,
    configurable: true,
  },
});

const data = Object.create(base, {
  enumerableString: {
    value: 2,
    writable: true,
    enumerable: true,
    configurable: true,
  },
  nonEnumerableString: {
    value: 3,
    writable: true,
    enumerable: false,
    configurable: true,
  },
  [123]: {
    value: 3,
    writable: true,
    enumerable: true,
    configurable: true,
  },
  // $FlowFixMe[invalid-computed-prop]
  [Symbol('nonEnumerableSymbol')]: {
    value: 2,
    writable: true,
    enumerable: false,
    configurable: true,
  },
  // $FlowFixMe[invalid-computed-prop]
  [Symbol('enumerableSymbol')]: {
    value: 3,
    writable: true,
    enumerable: true,
    configurable: true,
  },
});

export default function SymbolKeys(): React.Node {
  return <ChildComponent data={data} />;
}

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

Domain

Subdomains

Dependencies

  • react

Frequently Asked Questions

What does SymbolKeys.js do?
SymbolKeys.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 SymbolKeys.js?
SymbolKeys.js defines 2 function(s): ChildComponent, SymbolKeys.
What does SymbolKeys.js depend on?
SymbolKeys.js imports 1 module(s): react.
What files import SymbolKeys.js?
SymbolKeys.js is imported by 1 file(s): InspectableElements.js.
Where is SymbolKeys.js in the architecture?
SymbolKeys.js is located at packages/react-devtools-shell/src/app/InspectableElements/SymbolKeys.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