Home / Class/ Link2 Class — react Architecture

Link2 Class — react Architecture

Architecture documentation for the Link2 class in benchmark.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a62eba98_7bd7_89bc_480b_03dc42402ed8["Link2"]
  3ebee981_8211_0c1c_516b_03ba4cbff0e7["benchmark.js"]
  a62eba98_7bd7_89bc_480b_03dc42402ed8 -->|defined in| 3ebee981_8211_0c1c_516b_03ba4cbff0e7
  ea8b8574_dcee_6ceb_3435_8876774419d9["render()"]
  a62eba98_7bd7_89bc_480b_03dc42402ed8 -->|method| ea8b8574_dcee_6ceb_3435_8876774419d9

Relationship Graph

Source Code

scripts/bench/benchmarks/pe-class-components/benchmark.js lines 409–442

  class Link2 extends React.Component {
    render() {
      if (this.props.x === 2) {
        return React.createElement(AbstractLink1, {x: 1});
      }
      if (this.props.x === 44) {
        return React.createElement(AbstractLink1, {x: 43});
      }
      if (this.props.x === 50) {
        return React.createElement(AbstractLink1, {x: 49});
      }
      if (this.props.x === 129) {
        return React.createElement(AbstractLink1, {x: 128});
      }
      if (this.props.x === 137) {
        return React.createElement(AbstractLink1, {x: 136});
      }
      if (this.props.x === 179) {
        return React.createElement(AbstractLink1, {x: 178});
      }
      if (this.props.x === 208) {
        return React.createElement(AbstractLink1, {x: 207});
      }
      if (this.props.x === 210) {
        return React.createElement(AbstractLink1, {x: 209});
      }
      if (this.props.x === 242) {
        return React.createElement(AbstractLink1, {x: 241});
      }
      if (this.props.x === 268) {
        return React.createElement(AbstractLink1, {x: 267});
      }
    }
  }

Frequently Asked Questions

What is the Link2 class?
Link2 is a class in the react codebase, defined in scripts/bench/benchmarks/pe-class-components/benchmark.js.
Where is Link2 defined?
Link2 is defined in scripts/bench/benchmarks/pe-class-components/benchmark.js at line 409.

Analyze Your Own Codebase

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

Try Supermodel Free