Intermediary Class — react Architecture
Architecture documentation for the Intermediary class in ReactLegacyCompositeComponent-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3e0452e4_693c_8a31_762c_d28320a8555e["Intermediary"] 3b351a1f_faad_fff4_44c6_33b8718b45d0["ReactLegacyCompositeComponent-test.js"] 3e0452e4_693c_8a31_762c_d28320a8555e -->|defined in| 3b351a1f_faad_fff4_44c6_33b8718b45d0 303fee2e_2c2d_e0f5_6096_84d9854944c2["UNSAFE_componentWillReceiveProps()"] 3e0452e4_693c_8a31_762c_d28320a8555e -->|method| 303fee2e_2c2d_e0f5_6096_84d9854944c2 fc68d5d7_069b_39d3_520d_150f3feb6068["shouldComponentUpdate()"] 3e0452e4_693c_8a31_762c_d28320a8555e -->|method| fc68d5d7_069b_39d3_520d_150f3feb6068 49c19248_76ca_9229_7f01_b7f59f6601de["render()"] 3e0452e4_693c_8a31_762c_d28320a8555e -->|method| 49c19248_76ca_9229_7f01_b7f59f6601de
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactLegacyCompositeComponent-test.js lines 458–471
class Intermediary extends React.Component {
UNSAFE_componentWillReceiveProps(nextProps, nextContext) {
expect('foo' in nextContext).toBe(false);
}
shouldComponentUpdate(nextProps, nextState, nextContext) {
expect('foo' in nextContext).toBe(false);
return true;
}
render() {
return <Leaf />;
}
}
Source
Frequently Asked Questions
What is the Intermediary class?
Intermediary is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactLegacyCompositeComponent-test.js.
Where is Intermediary defined?
Intermediary is defined in packages/react-dom/src/__tests__/ReactLegacyCompositeComponent-test.js at line 458.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free