Home / File/ backend.js — react Source File

backend.js — react Source File

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

File javascript BabelCompiler Validation 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  2a362e81_2400_54f3_7410_376f8ae7be77["backend.js"]
  74bd19f4_2af1_7f72_caea_df13aa3e4693["utils.js"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> 74bd19f4_2af1_7f72_caea_df13aa3e4693
  40bf6909_04ae_bfb6_965f_14cfe98b94de["types"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> 40bf6909_04ae_bfb6_965f_14cfe98b94de
  7812cbae_0bd0_497c_0a05_31fe0a8d0fde["agent"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> 7812cbae_0bd0_497c_0a05_31fe0a8d0fde
  4077b620_5c59_61c2_0910_273f565da757["bridge"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> 4077b620_5c59_61c2_0910_273f565da757
  bb23732c_ecb9_fba3_cd32_68ff2320751d["backend"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> bb23732c_ecb9_fba3_cd32_68ff2320751d
  a0f3dac9_e573_4923_3098_4bb9e10f0e2d["setupNativeStyleEditor"]
  2a362e81_2400_54f3_7410_376f8ae7be77 --> a0f3dac9_e573_4923_3098_4bb9e10f0e2d
  style 2a362e81_2400_54f3_7410_376f8ae7be77 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 {DevToolsHook} from 'react-devtools-shared/src/backend/types';

import Agent from 'react-devtools-shared/src/backend/agent';
import Bridge from 'react-devtools-shared/src/bridge';
import {initBackend} from 'react-devtools-shared/src/backend';
import setupNativeStyleEditor from 'react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor';

import {COMPACT_VERSION_NAME} from './utils';

setup(window.__REACT_DEVTOOLS_GLOBAL_HOOK__);

function setup(hook: ?DevToolsHook) {
  if (hook == null) {
    return;
  }

  hook.backends.set(COMPACT_VERSION_NAME, {
    Agent,
    Bridge,
    initBackend,
    setupNativeStyleEditor,
  });

  hook.emit('devtools-backend-installed', COMPACT_VERSION_NAME);
}

Domain

Subdomains

Functions

Dependencies

  • agent
  • backend
  • bridge
  • setupNativeStyleEditor
  • types
  • utils.js

Frequently Asked Questions

What does backend.js do?
backend.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 backend.js?
backend.js defines 1 function(s): setup.
What does backend.js depend on?
backend.js imports 6 module(s): agent, backend, bridge, setupNativeStyleEditor, types, utils.js.
Where is backend.js in the architecture?
backend.js is located at packages/react-devtools-extensions/src/backend.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-extensions/src).

Analyze Your Own Codebase

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

Try Supermodel Free