TestComponent Class — react Architecture
Architecture documentation for the TestComponent class in ReactServerRenderingHydration-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 97b43d32_786c_5f2c_a602_295b46f09ef9["TestComponent"] b7920700_e7c1_3067_f871_ad47aca466c8["ReactServerRenderingHydration-test.js"] 97b43d32_786c_5f2c_a602_295b46f09ef9 -->|defined in| b7920700_e7c1_3067_f871_ad47aca466c8 f9571662_e374_eadf_cb72_8cffda8339fc["componentDidMount()"] 97b43d32_786c_5f2c_a602_295b46f09ef9 -->|method| f9571662_e374_eadf_cb72_8cffda8339fc de904781_ad46_a2c9_02d7_a93042640714["render()"] 97b43d32_786c_5f2c_a602_295b46f09ef9 -->|method| de904781_ad46_a2c9_02d7_a93042640714
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactServerRenderingHydration-test.js lines 45–63
class TestComponent extends React.Component {
spanRef = React.createRef();
componentDidMount() {
mountCount++;
}
click = () => {
numClicks++;
};
render() {
return (
<span ref={this.spanRef} onClick={this.click}>
Name: {this.props.name}
</span>
);
}
}
Source
Frequently Asked Questions
What is the TestComponent class?
TestComponent is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactServerRenderingHydration-test.js.
Where is TestComponent defined?
TestComponent is defined in packages/react-dom/src/__tests__/ReactServerRenderingHydration-test.js at line 45.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free