Component Class — react Architecture
Architecture documentation for the Component class in react-16.test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c0eb3098_f181_131d_5111_b2755e265950["Component"] 5ef1f50a_35f9_8c92_2ac2_47fbce5b4d8c["react-16.test.js"] c0eb3098_f181_131d_5111_b2755e265950 -->|defined in| 5ef1f50a_35f9_8c92_2ac2_47fbce5b4d8c 8b7a0a82_d2a1_3b04_7136_452f9b6912ec["render()"] c0eb3098_f181_131d_5111_b2755e265950 -->|method| 8b7a0a82_d2a1_3b04_7136_452f9b6912ec 0e1b54da_05db_fe97_41fc_db2e590a5f0b["componentDidMount()"] c0eb3098_f181_131d_5111_b2755e265950 -->|method| 0e1b54da_05db_fe97_41fc_db2e590a5f0b 2d7af556_fb2b_acba_bb1a_69c866de683d["constructor()"] c0eb3098_f181_131d_5111_b2755e265950 -->|method| 2d7af556_fb2b_acba_bb1a_69c866de683d
Relationship Graph
Source Code
fixtures/legacy-jsx-runtimes/react-16/react-16.test.js lines 544–559
class Component extends React.Component {
render() {
const inner = <Wrapper object={innerObj} ref="inner" />;
const outer = (
<Wrapper object={outerObj} ref="outer">
{inner}
</Wrapper>
);
return outer;
}
componentDidMount() {
expect(this.refs.inner.getObject()).toEqual(innerObj);
expect(this.refs.outer.getObject()).toEqual(outerObj);
}
}
Source
Frequently Asked Questions
What is the Component class?
Component is a class in the react codebase, defined in fixtures/legacy-jsx-runtimes/react-16/react-16.test.js.
Where is Component defined?
Component is defined in fixtures/legacy-jsx-runtimes/react-16/react-16.test.js at line 544.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free