Home / File/ panel.js — react Source File

panel.js — react Source File

Architecture documentation for panel.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

// Portal target container.
window.container = document.getElementById('container');

let hasInjectedStyles = false;

// DevTools styles are injected into the top-level document head (where the main React app is rendered).
// This method copies those styles to the child window where each panel (e.g. Elements, Profiler) is portaled.
window.injectStyles = getLinkTags => {
  if (!hasInjectedStyles) {
    hasInjectedStyles = true;

    const linkTags = getLinkTags();

    // eslint-disable-next-line no-for-of-loops/no-for-of-loops
    for (const linkTag of linkTags) {
      document.head.appendChild(linkTag);
    }
  }
};

Domain

Subdomains

Functions

Frequently Asked Questions

What does panel.js do?
panel.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 panel.js?
panel.js defines 1 function(s): window.
Where is panel.js in the architecture?
panel.js is located at packages/react-devtools-extensions/src/panel.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