Component Class — react Architecture
Architecture documentation for the Component class in react-14.test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 87055add_e854_de77_bc7e_7fa92f1a3b98["Component"] f663549b_f9ba_4d22_407a_53892b9fc04d["react-14.test.js"] 87055add_e854_de77_bc7e_7fa92f1a3b98 -->|defined in| f663549b_f9ba_4d22_407a_53892b9fc04d 6db56185_4f06_3470_2df0_26e340dea1f5["render()"] 87055add_e854_de77_bc7e_7fa92f1a3b98 -->|method| 6db56185_4f06_3470_2df0_26e340dea1f5 392b627f_ecbd_bf94_373c_aba2dc285e1d["componentDidMount()"] 87055add_e854_de77_bc7e_7fa92f1a3b98 -->|method| 392b627f_ecbd_bf94_373c_aba2dc285e1d 1665d917_3ba6_d934_1840_b4cbfd87c4c4["constructor()"] 87055add_e854_de77_bc7e_7fa92f1a3b98 -->|method| 1665d917_3ba6_d934_1840_b4cbfd87c4c4
Relationship Graph
Source Code
fixtures/legacy-jsx-runtimes/react-14/react-14.test.js lines 552–567
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-14/react-14.test.js.
Where is Component defined?
Component is defined in fixtures/legacy-jsx-runtimes/react-14/react-14.test.js at line 552.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free