Home / File/ NestedProps.js — react Source File

NestedProps.js — react Source File

Architecture documentation for NestedProps.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
  7e82fcb1_9f36_01a2_2f38_3c789b197976["NestedProps.js"]
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  7e82fcb1_9f36_01a2_2f38_3c789b197976 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  ee521c92_6aea_ed48_b3b2_59ca21d468e3["InspectableElements.js"]
  ee521c92_6aea_ed48_b3b2_59ca21d468e3 --> 7e82fcb1_9f36_01a2_2f38_3c789b197976
  style 7e82fcb1_9f36_01a2_2f38_3c789b197976 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 object = {
  string: 'abc',
  longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMNOPQRSTUVWXYZ1234567890',
  emptyString: '',
  number: 123,
  boolean: true,
  undefined: undefined,
  null: null,
};

export default function ObjectProps(): React.Node {
  return (
    <ChildComponent
      object={{
        outer: {
          inner: object,
        },
      }}
      array={['first', 'second', 'third']}
      objectInArray={[object]}
      arrayInObject={{array: ['first', 'second', 'third']}}
      deepObject={{
        // Known limitation: we won't go deeper than several levels.
        // In the future, we might offer a way to request deeper access on demand.
        a: {
          b: {
            c: {
              d: {
                e: {
                  f: {
                    g: {
                      h: {
                        i: {
                          j: 10,
                        },
                      },
                    },
                  },
                },
              },
            },
          },
        },
      }}
      emptyArray={[]}
      emptyObject={{}}
    />
  );
}

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

Domain

Subdomains

Dependencies

  • react

Frequently Asked Questions

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