Stateful Class — react Architecture
Architecture documentation for the Stateful class in ReactLegacyErrorBoundaries-test.internal.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ac3496d6_b236_b2f8_dafd_01133ef29e3a["Stateful"] c1f6650c_8eac_af0e_4f72_71687f0e6a35["ReactLegacyErrorBoundaries-test.internal.js"] ac3496d6_b236_b2f8_dafd_01133ef29e3a -->|defined in| c1f6650c_8eac_af0e_4f72_71687f0e6a35 30d76ed3_992f_9016_81b3_c2b707bfbded["render()"] ac3496d6_b236_b2f8_dafd_01133ef29e3a -->|method| 30d76ed3_992f_9016_81b3_c2b707bfbded
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js lines 1824–1834
class Stateful extends React.Component {
state = {shouldThrow: false};
render() {
if (fail) {
log.push('Stateful render [!]');
throw new Error('Hello');
}
return <div>{this.props.children}</div>;
}
}
Source
Frequently Asked Questions
What is the Stateful class?
Stateful is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js.
Where is Stateful defined?
Stateful is defined in packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js at line 1824.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free