Home / Class/ Provider Class — react Architecture

Provider Class — react Architecture

Architecture documentation for the Provider class in ReactIncrementalErrorHandling-test.internal.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bd956a25_14c7_b6f7_8a92_a12fa3cc4271["Provider"]
  bdc0ced0_3b40_1f5c_3bb2_d99e616f9728["ReactIncrementalErrorHandling-test.internal.js"]
  bd956a25_14c7_b6f7_8a92_a12fa3cc4271 -->|defined in| bdc0ced0_3b40_1f5c_3bb2_d99e616f9728
  82c99173_8463_ec89_2017_5686a7e1ba08["getChildContext()"]
  bd956a25_14c7_b6f7_8a92_a12fa3cc4271 -->|method| 82c99173_8463_ec89_2017_5686a7e1ba08
  978e3a50_6a23_40b2_0662_b0382bc0d3fd["render()"]
  bd956a25_14c7_b6f7_8a92_a12fa3cc4271 -->|method| 978e3a50_6a23_40b2_0662_b0382bc0d3fd

Relationship Graph

Source Code

packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js lines 1163–1174

    class Provider extends React.Component {
      static childContextTypes = {message: PropTypes.string};
      static contextTypes = {message: PropTypes.string};
      getChildContext() {
        return {
          message: (this.context.message || '') + this.props.message,
        };
      }
      render() {
        return this.props.children;
      }
    }

Frequently Asked Questions

What is the Provider class?
Provider is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js.
Where is Provider defined?
Provider is defined in packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js at line 1163.

Analyze Your Own Codebase

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

Try Supermodel Free