Home / Class/ Example Class — react Architecture

Example Class — react Architecture

Architecture documentation for the Example class in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  95d23763_81e7_d8e4_e202_50589f6d0523["Example"]
  81bda781_d1ab_04a2_f9a5_679111cfc7c2["index.js"]
  95d23763_81e7_d8e4_e202_50589f6d0523 -->|defined in| 81bda781_d1ab_04a2_f9a5_679111cfc7c2
  1745678a_3796_fdf1_8054_ff2100f2e572["render()"]
  95d23763_81e7_d8e4_e202_50589f6d0523 -->|method| 1745678a_3796_fdf1_8054_ff2100f2e572

Relationship Graph

Source Code

fixtures/dom/src/components/fixtures/error-handling/index.js lines 54–71

class Example extends React.Component {
  state = {key: 0};
  restart = () => {
    this.setState(state => ({key: state.key + 1}));
  };
  render() {
    return (
      <div>
        <button onClick={this.restart}>Reset</button>
        <ErrorBoundary
          buttonText={this.props.buttonText}
          doThrow={this.props.doThrow}
          key={this.state.key}
        />
      </div>
    );
  }
}

Domain

Frequently Asked Questions

What is the Example class?
Example is a class in the react codebase, defined in fixtures/dom/src/components/fixtures/error-handling/index.js.
Where is Example defined?
Example is defined in fixtures/dom/src/components/fixtures/error-handling/index.js at line 54.

Analyze Your Own Codebase

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

Try Supermodel Free