App Class — react Architecture
Architecture documentation for the App class in ReactUpdates-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6a316ce3_0748_54ab_f183_a609a7304413["App"] e1a7562e_ea2b_594b_d7d2_0ca836dcd888["ReactUpdates-test.js"] 6a316ce3_0748_54ab_f183_a609a7304413 -->|defined in| e1a7562e_ea2b_594b_d7d2_0ca836dcd888 898e3524_7d45_18ae_18ed_66df5b22ea80["constructor()"] 6a316ce3_0748_54ab_f183_a609a7304413 -->|method| 898e3524_7d45_18ae_18ed_66df5b22ea80 4838dcda_1aea_c9af_39e6_1901335318e5["render()"] 6a316ce3_0748_54ab_f183_a609a7304413 -->|method| 4838dcda_1aea_c9af_39e6_1901335318e5 9f76e925_3d31_5f63_3c72_e085a6557702["componentDidMount()"] 6a316ce3_0748_54ab_f183_a609a7304413 -->|method| 9f76e925_3d31_5f63_3c72_e085a6557702
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactUpdates-test.js lines 576–590
class App extends React.Component {
switcherRef = React.createRef();
childRef = React.createRef();
constructor(props) {
super(props);
instance = this;
}
render() {
return (
<Switcher ref={this.switcherRef}>
<Child key="hello" ref={this.childRef} />
</Switcher>
);
}
}
Source
Frequently Asked Questions
What is the App class?
App is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactUpdates-test.js.
Where is App defined?
App is defined in packages/react-dom/src/__tests__/ReactUpdates-test.js at line 576.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free