Home / Class/ App Class — react Architecture

App Class — react Architecture

Architecture documentation for the App class in ReactSuspenseWithNoopRenderer-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  33948309_5636_d6e8_7c2c_32cab2063188["App"]
  aebda27b_75ef_20d7_b451_43162e398a18["ReactSuspenseWithNoopRenderer-test.js"]
  33948309_5636_d6e8_7c2c_32cab2063188 -->|defined in| aebda27b_75ef_20d7_b451_43162e398a18
  e7adf327_5a34_8ae2_5796_6130746bee6a["render()"]
  33948309_5636_d6e8_7c2c_32cab2063188 -->|method| e7adf327_5a34_8ae2_5796_6130746bee6a

Relationship Graph

Source Code

packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js lines 1987–1998

    class App extends React.Component {
      state = {show: false};

      render() {
        show = () => this.setState({show: true});
        return (
          <Suspense fallback="Loading...">
            {this.state.show && <AsyncText text="A" />}
          </Suspense>
        );
      }
    }

Frequently Asked Questions

What is the App class?
App is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js.
Where is App defined?
App is defined in packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js at line 1987.

Analyze Your Own Codebase

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

Try Supermodel Free