Home / Class/ WithLifecycles Class — react Architecture

WithLifecycles Class — react Architecture

Architecture documentation for the WithLifecycles class in ReactProfiler-test.internal.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  819b927d_8687_2001_2720_e9dfc80ecc56["WithLifecycles"]
  da651484_5f55_0111_b32f_8124f5c087a3["ReactProfiler-test.internal.js"]
  819b927d_8687_2001_2720_e9dfc80ecc56 -->|defined in| da651484_5f55_0111_b32f_8124f5c087a3
  aaa62016_98b7_1a3d_0d55_4b68f752c4d5["getDerivedStateFromProps()"]
  819b927d_8687_2001_2720_e9dfc80ecc56 -->|method| aaa62016_98b7_1a3d_0d55_4b68f752c4d5
  d6309c77_9e91_c56d_4c32_caa60e417bd0["shouldComponentUpdate()"]
  819b927d_8687_2001_2720_e9dfc80ecc56 -->|method| d6309c77_9e91_c56d_4c32_caa60e417bd0
  64b145fb_0b93_21f0_d12a_5a94824f08f3["render()"]
  819b927d_8687_2001_2720_e9dfc80ecc56 -->|method| 64b145fb_0b93_21f0_d12a_5a94824f08f3

Relationship Graph

Source Code

packages/react/src/__tests__/ReactProfiler-test.internal.js lines 554–568

    class WithLifecycles extends React.Component {
      state = {};
      static getDerivedStateFromProps() {
        Scheduler.unstable_advanceTime(3);
        return null;
      }
      shouldComponentUpdate() {
        Scheduler.unstable_advanceTime(7);
        return true;
      }
      render() {
        Scheduler.unstable_advanceTime(5);
        return null;
      }
    }

Frequently Asked Questions

What is the WithLifecycles class?
WithLifecycles is a class in the react codebase, defined in packages/react/src/__tests__/ReactProfiler-test.internal.js.
Where is WithLifecycles defined?
WithLifecycles is defined in packages/react/src/__tests__/ReactProfiler-test.internal.js at line 554.

Analyze Your Own Codebase

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

Try Supermodel Free