Home / File/ ViewElementSourceContext.js — react Source File

ViewElementSourceContext.js — react Source File

Architecture documentation for ViewElementSourceContext.js, a javascript file in the react codebase. 3 imports, 2 dependents.

File javascript BabelCompiler 3 imports 2 dependents

Entity Profile

Dependency Diagram

graph LR
  10e77c43_8f60_bbc4_f7e7_41da67a4fac9["ViewElementSourceContext.js"]
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  10e77c43_8f60_bbc4_f7e7_41da67a4fac9 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  ac587885_e294_a1e9_b13f_5e7b920fdb42["react"]
  10e77c43_8f60_bbc4_f7e7_41da67a4fac9 --> ac587885_e294_a1e9_b13f_5e7b920fdb42
  ce034302_61e9_5cdc_95e6_1e120df583e4["DevTools"]
  10e77c43_8f60_bbc4_f7e7_41da67a4fac9 --> ce034302_61e9_5cdc_95e6_1e120df583e4
  e2c52a93_982e_407f_9fee_e89aa134ae9d["DevTools.js"]
  e2c52a93_982e_407f_9fee_e89aa134ae9d --> 10e77c43_8f60_bbc4_f7e7_41da67a4fac9
  4d6a124e_fdc4_9da9_8ac7_85f75cd106fe["useOpenResource.js"]
  4d6a124e_fdc4_9da9_8ac7_85f75cd106fe --> 10e77c43_8f60_bbc4_f7e7_41da67a4fac9
  style 10e77c43_8f60_bbc4_f7e7_41da67a4fac9 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 {ReactContext} from 'shared/ReactTypes';

import {createContext} from 'react';

import type {
  CanViewElementSource,
  ViewElementSource,
} from 'react-devtools-shared/src/devtools/views/DevTools';

export type Context = {
  canViewElementSourceFunction: CanViewElementSource | null,
  viewElementSourceFunction: ViewElementSource | null,
};

const ViewElementSourceContext: ReactContext<Context> = createContext<Context>(
  ((null: any): Context),
);
ViewElementSourceContext.displayName = 'ViewElementSourceContext';

export default ViewElementSourceContext;

Domain

Dependencies

  • DevTools
  • ReactTypes
  • react

Frequently Asked Questions

What does ViewElementSourceContext.js do?
ViewElementSourceContext.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ViewElementSourceContext.js depend on?
ViewElementSourceContext.js imports 3 module(s): DevTools, ReactTypes, react.
What files import ViewElementSourceContext.js?
ViewElementSourceContext.js is imported by 2 file(s): DevTools.js, useOpenResource.js.
Where is ViewElementSourceContext.js in the architecture?
ViewElementSourceContext.js is located at packages/react-devtools-shared/src/devtools/views/Components/ViewElementSourceContext.js (domain: BabelCompiler, directory: packages/react-devtools-shared/src/devtools/views/Components).

Analyze Your Own Codebase

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

Try Supermodel Free