BrokenComponentWillMountWithContext Class — react Architecture
Architecture documentation for the BrokenComponentWillMountWithContext class in ReactErrorBoundaries-test.internal.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6fd49c49_a47a_6e94_6c32_ab7a25e2bf01["BrokenComponentWillMountWithContext"] e3be826d_2e6e_c7e0_1926_386d40353a30["ReactErrorBoundaries-test.internal.js"] 6fd49c49_a47a_6e94_6c32_ab7a25e2bf01 -->|defined in| e3be826d_2e6e_c7e0_1926_386d40353a30 7560344e_2a3b_9abf_03f1_cfdb531effdd["getChildContext()"] 6fd49c49_a47a_6e94_6c32_ab7a25e2bf01 -->|method| 7560344e_2a3b_9abf_03f1_cfdb531effdd a52e376b_b70c_361d_01ab_4a6956c24f25["render()"] 6fd49c49_a47a_6e94_6c32_ab7a25e2bf01 -->|method| a52e376b_b70c_361d_01ab_4a6956c24f25 337c295d_dc72_62aa_d223_c3a88df9b6ea["UNSAFE_componentWillMount()"] 6fd49c49_a47a_6e94_6c32_ab7a25e2bf01 -->|method| 337c295d_dc72_62aa_d223_c3a88df9b6ea
Relationship Graph
Source Code
packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js lines 876–887
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__/ReactErrorBoundaries-test.internal.js.
Where is BrokenComponentWillMountWithContext defined?
BrokenComponentWillMountWithContext is defined in packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js at line 876.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free