BrokenComponentWillMountWithContext Class — react Architecture
Architecture documentation for the BrokenComponentWillMountWithContext class in ReactLegacyErrorBoundaries-test.internal.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1136bf1a_5152_687b_2937_2cc0b6391e84["BrokenComponentWillMountWithContext"] c1f6650c_8eac_af0e_4f72_71687f0e6a35["ReactLegacyErrorBoundaries-test.internal.js"] 1136bf1a_5152_687b_2937_2cc0b6391e84 -->|defined in| c1f6650c_8eac_af0e_4f72_71687f0e6a35 4db9644f_10a0_2bbf_5446_0b5f4d3bbb92["getChildContext()"] 1136bf1a_5152_687b_2937_2cc0b6391e84 -->|method| 4db9644f_10a0_2bbf_5446_0b5f4d3bbb92 aaeb341b_cd83_993f_c39b_35087a9f9b49["render()"] 1136bf1a_5152_687b_2937_2cc0b6391e84 -->|method| aaeb341b_cd83_993f_c39b_35087a9f9b49 4aef6fc2_489d_efaa_f44c_4da6c2ab1379["UNSAFE_componentWillMount()"] 1136bf1a_5152_687b_2937_2cc0b6391e84 -->|method| 4aef6fc2_489d_efaa_f44c_4da6c2ab1379
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js lines 832–843
class BrokenComponentWillMountWithContext extends React.Component {
static childContextTypes = {foo: PropTypes.number};
getChildContext() {
return {foo: 42};
}
render() {
return <div>{this.props.children}</div>;
}
UNSAFE_componentWillMount() {
throw new Error('Hello');
}
}
Source
Frequently Asked Questions
What is the BrokenComponentWillMountWithContext class?
BrokenComponentWillMountWithContext is a class in the react codebase, defined in packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js.
Where is BrokenComponentWillMountWithContext defined?
BrokenComponentWillMountWithContext is defined in packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js at line 832.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free