Home / File/ index.js — react Source File

index.js — react Source File

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

File javascript BabelCompiler Validation 1 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  6051890b_b0c5_2ca4_ef7b_be8e4994379e["index.js"]
  4077b620_5c59_61c2_0910_273f565da757["bridge"]
  6051890b_b0c5_2ca4_ef7b_be8e4994379e --> 4077b620_5c59_61c2_0910_273f565da757
  style 6051890b_b0c5_2ca4_ef7b_be8e4994379e 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 type {FrontendBridge} from 'react-devtools-shared/src/bridge';

type Shell = {
  connect: (callback: Function) => void,
  onReload: (reloadFn: Function) => void,
};

export function initDevTools(shell: Shell) {
  shell.connect((bridge: FrontendBridge) => {
    // TODO ...
  });
}

Domain

Subdomains

Dependencies

  • bridge

Frequently Asked Questions

What does index.js do?
index.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 index.js?
index.js defines 3 function(s): initDevTools, type.connect, type.onReload.
What does index.js depend on?
index.js imports 1 module(s): bridge.
Where is index.js in the architecture?
index.js is located at packages/react-devtools-shared/src/devtools/index.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src/devtools).

Analyze Your Own Codebase

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

Try Supermodel Free