Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  03138e47_4a64_e8bd_4d2c_df02177e0ce0["constructor()"]
  1c329cd9_c484_a7fb_a927_60fad9a4f574["Header"]
  03138e47_4a64_e8bd_4d2c_df02177e0ce0 -->|defined in| 1c329cd9_c484_a7fb_a927_60fad9a4f574
  597e1566_5e6e_3459_411c_7accfa1a6959["constructor()"]
  03138e47_4a64_e8bd_4d2c_df02177e0ce0 -->|calls| 597e1566_5e6e_3459_411c_7accfa1a6959
  style 03138e47_4a64_e8bd_4d2c_df02177e0ce0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/dom/src/components/Header.js lines 7–15

  constructor(props, context) {
    super(props, context);
    const query = parse(window.location.search);
    const version = query.version || 'local';
    const production = query.production || false;
    const versions = [version];

    this.state = {version, versions, production};
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in fixtures/dom/src/components/Header.js.
Where is constructor() defined?
constructor() is defined in fixtures/dom/src/components/Header.js at line 7.
What does constructor() call?
constructor() calls 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free