Home / Class/ AsyncTextInConstructor Class — react Architecture

AsyncTextInConstructor Class — react Architecture

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

Entity Profile

Dependency Diagram

graph TD
  64399e58_a31b_e99f_28f9_c34e44274b9d["AsyncTextInConstructor"]
  aebda27b_75ef_20d7_b451_43162e398a18["ReactSuspenseWithNoopRenderer-test.js"]
  64399e58_a31b_e99f_28f9_c34e44274b9d -->|defined in| aebda27b_75ef_20d7_b451_43162e398a18
  9a5c3435_8556_3d1f_6f00_fc1f1820d4ea["constructor()"]
  64399e58_a31b_e99f_28f9_c34e44274b9d -->|method| 9a5c3435_8556_3d1f_6f00_fc1f1820d4ea
  cd470f09_528b_808f_fcc6_11f3a62d8b1e["componentDidMount()"]
  64399e58_a31b_e99f_28f9_c34e44274b9d -->|method| cd470f09_528b_808f_fcc6_11f3a62d8b1e
  2fbfd72c_59b0_86db_7c81_5ba2a95c1bd0["render()"]
  64399e58_a31b_e99f_28f9_c34e44274b9d -->|method| 2fbfd72c_59b0_86db_7c81_5ba2a95c1bd0

Relationship Graph

Source Code

packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js lines 1263–1278

      class AsyncTextInConstructor extends React.Component {
        constructor(props) {
          super(props);
          const text = props.text;
          Scheduler.log('constructor');
          readText(text);
          this.state = {text};
        }
        componentDidMount() {
          Scheduler.log('componentDidMount');
        }
        render() {
          Scheduler.log(this.state.text);
          return <span prop={this.state.text} />;
        }
      }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free