ClassChildWithWrongContext Class — react Architecture
Architecture documentation for the ClassChildWithWrongContext class in ReactDOMServerIntegrationLegacyContext-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ad7aed23_8e7e_5e59_703e_c6503dcf4a8f["ClassChildWithWrongContext"] d5a87709_f74b_db60_4489_4cf7359bd50c["ReactDOMServerIntegrationLegacyContext-test.js"] ad7aed23_8e7e_5e59_703e_c6503dcf4a8f -->|defined in| d5a87709_f74b_db60_4489_4cf7359bd50c 8a48d59d_37b4_724c_7544_fdbc932e190a["render()"] ad7aed23_8e7e_5e59_703e_c6503dcf4a8f -->|method| 8a48d59d_37b4_724c_7544_fdbc932e190a
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContext-test.js lines 151–156
class ClassChildWithWrongContext extends React.Component {
render() {
// this should render blank; context.text isn't passed to this component.
return <div id="classWrongChild">{this.context.text}</div>;
}
}
Source
Frequently Asked Questions
What is the ClassChildWithWrongContext class?
ClassChildWithWrongContext is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContext-test.js.
Where is ClassChildWithWrongContext defined?
ClassChildWithWrongContext is defined in packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContext-test.js at line 151.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free