ComponentWithCommitHooks Class — react Architecture
Architecture documentation for the ComponentWithCommitHooks class in ReactProfiler-test.internal.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 250b89c2_2a87_3eb4_6d03_2c1ae97ed5f7["ComponentWithCommitHooks"] da651484_5f55_0111_b32f_8124f5c087a3["ReactProfiler-test.internal.js"] 250b89c2_2a87_3eb4_6d03_2c1ae97ed5f7 -->|defined in| da651484_5f55_0111_b32f_8124f5c087a3 d30d2f58_648d_0450_379d_f19dd5bfea05["componentDidMount()"] 250b89c2_2a87_3eb4_6d03_2c1ae97ed5f7 -->|method| d30d2f58_648d_0450_379d_f19dd5bfea05 b622f679_404d_9f61_6fe9_bd06b722b881["componentDidUpdate()"] 250b89c2_2a87_3eb4_6d03_2c1ae97ed5f7 -->|method| b622f679_404d_9f61_6fe9_bd06b722b881 51e29d31_97a9_68f1_4f83_25a5650250a5["render()"] 250b89c2_2a87_3eb4_6d03_2c1ae97ed5f7 -->|method| 51e29d31_97a9_68f1_4f83_25a5650250a5
Relationship Graph
Source Code
packages/react/src/__tests__/ReactProfiler-test.internal.js lines 1306–1316
class ComponentWithCommitHooks extends React.Component {
componentDidMount() {
Scheduler.unstable_advanceTime(100000);
}
componentDidUpdate() {
Scheduler.unstable_advanceTime(1000000);
}
render() {
return null;
}
}
Source
Frequently Asked Questions
What is the ComponentWithCommitHooks class?
ComponentWithCommitHooks is a class in the react codebase, defined in packages/react/src/__tests__/ReactProfiler-test.internal.js.
Where is ComponentWithCommitHooks defined?
ComponentWithCommitHooks is defined in packages/react/src/__tests__/ReactProfiler-test.internal.js at line 1306.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free