Home / Class/ EventuallyTerminating Class — react Architecture

EventuallyTerminating Class — react Architecture

Architecture documentation for the EventuallyTerminating class in ReactUpdates-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  86d994c6_db6b_6d1a_5cf2_734a36a735fd["EventuallyTerminating"]
  e1a7562e_ea2b_594b_d7d2_0ca836dcd888["ReactUpdates-test.js"]
  86d994c6_db6b_6d1a_5cf2_734a36a735fd -->|defined in| e1a7562e_ea2b_594b_d7d2_0ca836dcd888
  cb7569c1_a0e4_290e_b1d8_44b1c489d7f0["componentDidMount()"]
  86d994c6_db6b_6d1a_5cf2_734a36a735fd -->|method| cb7569c1_a0e4_290e_b1d8_44b1c489d7f0
  f811686d_d5d1_b612_7c90_cf35ceaeeba4["componentDidUpdate()"]
  86d994c6_db6b_6d1a_5cf2_734a36a735fd -->|method| f811686d_d5d1_b612_7c90_cf35ceaeeba4
  622292d2_5c9b_0744_4c84_f3fdc8f397db["render()"]
  86d994c6_db6b_6d1a_5cf2_734a36a735fd -->|method| 622292d2_5c9b_0744_4c84_f3fdc8f397db

Relationship Graph

Source Code

packages/react-dom/src/__tests__/ReactUpdates-test.js lines 1545–1558

    class EventuallyTerminating extends React.Component {
      state = {step: 0};
      componentDidMount() {
        this.setState({step: 1});
      }
      componentDidUpdate() {
        if (this.state.step < limit) {
          this.setState({step: this.state.step + 1});
        }
      }
      render() {
        return this.state.step;
      }
    }

Frequently Asked Questions

What is the EventuallyTerminating class?
EventuallyTerminating is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactUpdates-test.js.
Where is EventuallyTerminating defined?
EventuallyTerminating is defined in packages/react-dom/src/__tests__/ReactUpdates-test.js at line 1545.

Analyze Your Own Codebase

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

Try Supermodel Free