Wrap Class — react Architecture
Architecture documentation for the Wrap class in ReactIncremental-test.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD ec7e6fe7_92ae_fc7c_7b70_417466362507["Wrap"] e830a60d_4147_3606_7890_6db744e9073f["ReactIncremental-test.js"] ec7e6fe7_92ae_fc7c_7b70_417466362507 -->|defined in| e830a60d_4147_3606_7890_6db744e9073f e0e4d669_b3a4_5ac0_1824_ccb1cb6cc14a["UNSAFE_componentWillMount()"] ec7e6fe7_92ae_fc7c_7b70_417466362507 -->|method| e0e4d669_b3a4_5ac0_1824_ccb1cb6cc14a a5146beb_99d6_7551_b050_e2d7d107ee5b["tick()"] ec7e6fe7_92ae_fc7c_7b70_417466362507 -->|method| a5146beb_99d6_7551_b050_e2d7d107ee5b af865848_d824_e9fd_8f6f_be0bbbf91d28["render()"] ec7e6fe7_92ae_fc7c_7b70_417466362507 -->|method| af865848_d824_e9fd_8f6f_be0bbbf91d28
Relationship Graph
Source Code
packages/react-reconciler/src/__tests__/ReactIncremental-test.js lines 1453–1467
class Wrap extends React.Component {
state = {y: 0};
UNSAFE_componentWillMount() {
instances.push(this);
}
tick() {
this.setState({
y: this.state.y + 1,
});
}
render() {
Scheduler.log('Wrap');
return <LifeCycle y={this.state.y} />;
}
}
Source
Frequently Asked Questions
What is the Wrap class?
Wrap is a class in the react codebase, defined in packages/react-reconciler/src/__tests__/ReactIncremental-test.js.
Where is Wrap defined?
Wrap is defined in packages/react-reconciler/src/__tests__/ReactIncremental-test.js at line 1453.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free