ClassChildWithWrongContext Class — react Architecture
Architecture documentation for the ClassChildWithWrongContext class in ReactDOMServerIntegrationClassContextType-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 37e4910d_867a_c898_c144_5b58a8f35484["ClassChildWithWrongContext"] 83faf6e4_0712_847f_3a23_cc17039300f7["ReactDOMServerIntegrationClassContextType-test.js"] 37e4910d_867a_c898_c144_5b58a8f35484 -->|defined in| 83faf6e4_0712_847f_3a23_cc17039300f7 cca810ea_91b2_b7fd_9f5a_baa43cd23392["render()"] 37e4910d_867a_c898_c144_5b58a8f35484 -->|method| cca810ea_91b2_b7fd_9f5a_baa43cd23392
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactDOMServerIntegrationClassContextType-test.js lines 94–100
class ClassChildWithWrongContext extends React.Component {
static contextType = Context;
render() {
// this should render blank; context.foo isn't passed to this component.
return <div id="classWrongChild">{this.context.foo}</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__/ReactDOMServerIntegrationClassContextType-test.js.
Where is ClassChildWithWrongContext defined?
ClassChildWithWrongContext is defined in packages/react-dom/src/__tests__/ReactDOMServerIntegrationClassContextType-test.js at line 94.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free