Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

Architecture documentation for the constructor() function in ReactDOMServerIntegrationEnvironment.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5574e3e4_8198_00ea_f87c_657eaa2d0f03["constructor()"]
  8f4d5687_6281_c4f2_b60d_720c59afd8cb["ReactDOMServerIntegrationEnvironment"]
  5574e3e4_8198_00ea_f87c_657eaa2d0f03 -->|defined in| 8f4d5687_6281_c4f2_b60d_720c59afd8cb
  style 5574e3e4_8198_00ea_f87c_657eaa2d0f03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/jest/ReactDOMServerIntegrationEnvironment.js lines 10–21

  constructor(config, context) {
    super(config, context);

    this.domEnvironment = new ReactJSDOMEnvironment(config, context);

    this.global.window = this.domEnvironment.dom.window;
    this.global.document = this.global.window.document;
    this.global.navigator = this.global.window.navigator;
    this.global.Node = this.global.window.Node;
    this.global.addEventListener = this.global.window.addEventListener;
    this.global.MutationObserver = this.global.window.MutationObserver;
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in scripts/jest/ReactDOMServerIntegrationEnvironment.js.
Where is constructor() defined?
constructor() is defined in scripts/jest/ReactDOMServerIntegrationEnvironment.js at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free