Home / Class/ ComponentInFooBarContext Class — react Architecture

ComponentInFooBarContext Class — react Architecture

Architecture documentation for the ComponentInFooBarContext class in ReactContextValidator-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  02696f0d_20ed_da0f_c5f9_c279b63af987["ComponentInFooBarContext"]
  a78993bf_bc51_62c4_6d74_713f127e1e58["ReactContextValidator-test.js"]
  02696f0d_20ed_da0f_c5f9_c279b63af987 -->|defined in| a78993bf_bc51_62c4_6d74_713f127e1e58
  1c1b4ab0_780b_2175_c6b5_506104f8137b["getChildContext()"]
  02696f0d_20ed_da0f_c5f9_c279b63af987 -->|method| 1c1b4ab0_780b_2175_c6b5_506104f8137b
  24a7b298_2538_152a_1724_5fc7dea9da21["render()"]
  02696f0d_20ed_da0f_c5f9_c279b63af987 -->|method| 24a7b298_2538_152a_1724_5fc7dea9da21

Relationship Graph

Source Code

packages/react/src/__tests__/ReactContextValidator-test.js lines 48–61

    class ComponentInFooBarContext extends React.Component {
      childRef = React.createRef();

      getChildContext() {
        return {
          foo: 'abc',
          bar: 123,
        };
      }

      render() {
        return <Component ref={this.childRef} />;
      }
    }

Frequently Asked Questions

What is the ComponentInFooBarContext class?
ComponentInFooBarContext is a class in the react codebase, defined in packages/react/src/__tests__/ReactContextValidator-test.js.
Where is ComponentInFooBarContext defined?
ComponentInFooBarContext is defined in packages/react/src/__tests__/ReactContextValidator-test.js at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free