Bar Class — react Architecture
Architecture documentation for the Bar class in ReactIncrementalSideEffects-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 37d31b46_8845_35fb_68b5_1e607fbf91a8["Bar"] 104266dd_053f_943b_5eb9_7fe0f38beced["ReactIncrementalSideEffects-test.js"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|defined in| 104266dd_053f_943b_5eb9_7fe0f38beced 456854db_4d7c_ef5b_dffa_281fb9f2daab["shouldComponentUpdate()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| 456854db_4d7c_ef5b_dffa_281fb9f2daab a1adef58_6b16_f35a_9cc3_b14fab313f68["render()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| a1adef58_6b16_f35a_9cc3_b14fab313f68 02a17df2_c0f1_7651_d635_294f3e8f18ed["constructor()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| 02a17df2_c0f1_7651_d635_294f3e8f18ed 5d88646e_acc1_7bec_7332_ef65fe493ecb["activate()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| 5d88646e_acc1_7bec_7332_ef65fe493ecb f9c15cb7_6365_d322_5948_b0972eecbbf4["componentWillUnmount()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| f9c15cb7_6365_d322_5948_b0972eecbbf4 c87b81db_3613_8bb3_4f4d_5ea900beaa69["componentDidMount()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| c87b81db_3613_8bb3_4f4d_5ea900beaa69 bbaace80_9073_9aec_7136_509e92b98949["componentDidUpdate()"] 37d31b46_8845_35fb_68b5_1e607fbf91a8 -->|method| bbaace80_9073_9aec_7136_509e92b98949
Relationship Graph
Source Code
packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js lines 615–623
class Bar extends React.Component {
shouldComponentUpdate(nextProps) {
return this.props.children !== nextProps.children;
}
render() {
Scheduler.log('Bar');
return <span prop={this.props.children} />;
}
}
Source
Frequently Asked Questions
What is the Bar class?
Bar is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js.
Where is Bar defined?
Bar is defined in packages/react-reconciler/src/__tests__/ReactIncrementalSideEffects-test.js at line 615.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free