Home / Class/ Foo Class — react Architecture

Foo Class — react Architecture

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

Entity Profile

Dependency Diagram

graph TD
  54e168e7_f982_3841_e71f_8c2b3b79a068["Foo"]
  aebda27b_75ef_20d7_b451_43162e398a18["ReactSuspenseWithNoopRenderer-test.js"]
  54e168e7_f982_3841_e71f_8c2b3b79a068 -->|defined in| aebda27b_75ef_20d7_b451_43162e398a18
  8f57de13_b7fd_6d7c_043d_ac6f9c307f47["render()"]
  54e168e7_f982_3841_e71f_8c2b3b79a068 -->|method| 8f57de13_b7fd_6d7c_043d_ac6f9c307f47

Relationship Graph

Source Code

packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.js lines 2912–2924

    class Foo extends React.Component {
      state = {suspend: false};
      render() {
        foo = this;

        if (this.state.suspend) {
          Scheduler.log('Suspend!');
          throw thenable;
        }

        return <Text text="Foo" />;
      }
    }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free