Home / Class/ BrokenRenderAndUnmount Class — react Architecture

BrokenRenderAndUnmount Class — react Architecture

Architecture documentation for the BrokenRenderAndUnmount class in ReactIncrementalErrorHandling-test.internal.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  cf0a2ef9_445f_ab96_bbe1_b2fd0325fe21["BrokenRenderAndUnmount"]
  bdc0ced0_3b40_1f5c_3bb2_d99e616f9728["ReactIncrementalErrorHandling-test.internal.js"]
  cf0a2ef9_445f_ab96_bbe1_b2fd0325fe21 -->|defined in| bdc0ced0_3b40_1f5c_3bb2_d99e616f9728
  c8fd0588_198c_6d69_b192_b9f3f9cdb15b["componentWillUnmount()"]
  cf0a2ef9_445f_ab96_bbe1_b2fd0325fe21 -->|method| c8fd0588_198c_6d69_b192_b9f3f9cdb15b
  17d76291_daae_714a_83a3_620a6c78765b["render()"]
  cf0a2ef9_445f_ab96_bbe1_b2fd0325fe21 -->|method| 17d76291_daae_714a_83a3_620a6c78765b

Relationship Graph

Source Code

packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js lines 1341–1353

    class BrokenRenderAndUnmount extends React.Component {
      state = {fail: false};
      componentWillUnmount() {
        Scheduler.log('BrokenRenderAndUnmount componentWillUnmount');
      }
      render() {
        inst = this;
        if (this.state.fail) {
          throw new Error('Hello.');
        }
        return null;
      }
    }

Frequently Asked Questions

What is the BrokenRenderAndUnmount class?
BrokenRenderAndUnmount is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js.
Where is BrokenRenderAndUnmount defined?
BrokenRenderAndUnmount is defined in packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js at line 1341.

Analyze Your Own Codebase

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

Try Supermodel Free