Home / Class/ ThemeComponent Class — react Architecture

ThemeComponent Class — react Architecture

Architecture documentation for the ThemeComponent class in ReactDOMServerIntegrationClassContextType-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  11788f51_92a8_f8a9_6756_beb423910d2d["ThemeComponent"]
  83faf6e4_0712_847f_3a23_cc17039300f7["ReactDOMServerIntegrationClassContextType-test.js"]
  11788f51_92a8_f8a9_6756_beb423910d2d -->|defined in| 83faf6e4_0712_847f_3a23_cc17039300f7
  fa0463a4_273e_9936_00bf_11438a0b95e0["render()"]
  11788f51_92a8_f8a9_6756_beb423910d2d -->|method| fa0463a4_273e_9936_00bf_11438a0b95e0

Relationship Graph

Source Code

packages/react-dom/src/__tests__/ReactDOMServerIntegrationClassContextType-test.js lines 167–172

      class ThemeComponent extends React.Component {
        static contextType = Theme;
        render() {
          return <div id="theme">{this.context}</div>;
        }
      }

Frequently Asked Questions

What is the ThemeComponent class?
ThemeComponent is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactDOMServerIntegrationClassContextType-test.js.
Where is ThemeComponent defined?
ThemeComponent is defined in packages/react-dom/src/__tests__/ReactDOMServerIntegrationClassContextType-test.js at line 167.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free