Inner Class — react Architecture
Architecture documentation for the Inner class in ReactEmptyComponent-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 22e77211_ab3c_722a_64f8_cd74e6641d01["Inner"] 295b05a2_f7a4_77fe_4112_1383a782d1eb["ReactEmptyComponent-test.js"] 22e77211_ab3c_722a_64f8_cd74e6641d01 -->|defined in| 295b05a2_f7a4_77fe_4112_1383a782d1eb fc7d2b26_d4e4_a4bc_9979_0997ba4d0c8f["render()"] 22e77211_ab3c_722a_64f8_cd74e6641d01 -->|method| fc7d2b26_d4e4_a4bc_9979_0997ba4d0c8f bebdb58b_4bfc_9f90_ea10_18f7bbd945e6["componentDidMount()"] 22e77211_ab3c_722a_64f8_cd74e6641d01 -->|method| bebdb58b_4bfc_9f90_ea10_18f7bbd945e6 77fbd7e0_5c7a_243e_2817_26745888d123["componentWillUnmount()"] 22e77211_ab3c_722a_64f8_cd74e6641d01 -->|method| 77fbd7e0_5c7a_243e_2817_26745888d123
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactEmptyComponent-test.js lines 254–270
class Inner extends React.Component {
render() {
return <span />;
}
componentDidMount() {
// Make sure the DOM node resolves properly even if we're replacing a
// `null` component
expect(findDOMNode(this)).not.toBe(null);
}
componentWillUnmount() {
// Even though we're getting replaced by `null`, we haven't been
// replaced yet!
expect(findDOMNode(this)).not.toBe(null);
}
}
Source
Frequently Asked Questions
What is the Inner class?
Inner is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactEmptyComponent-test.js.
Where is Inner defined?
Inner is defined in packages/react-dom/src/__tests__/ReactEmptyComponent-test.js at line 254.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free