AbstractButton3 Class — react Architecture
Architecture documentation for the AbstractButton3 class in benchmark.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6214f44b_7d73_1169_dd68_07d4c0281aab["AbstractButton3"] 3ebee981_8211_0c1c_516b_03ba4cbff0e7["benchmark.js"] 6214f44b_7d73_1169_dd68_07d4c0281aab -->|defined in| 3ebee981_8211_0c1c_516b_03ba4cbff0e7 05ee0466_6705_59db_d9b1_63a6d87f4466["render()"] 6214f44b_7d73_1169_dd68_07d4c0281aab -->|method| 05ee0466_6705_59db_d9b1_63a6d87f4466
Relationship Graph
Source Code
scripts/bench/benchmarks/pe-class-components/benchmark.js lines 444–814
class AbstractButton3 extends React.Component {
render() {
if (this.props.x === 3) {
return React.createElement(Link2, {x: 2});
}
if (this.props.x === 20) {
return React.createElement(
'button',
{
className: '_5n7z _4jy0 _4jy4 _517h _51sy _42ft',
onClick: function () {},
label: null,
type: 'submit',
value: '1',
},
undefined,
'Discard Changes',
undefined
);
}
if (this.props.x === 23) {
return React.createElement(
'button',
{
className: '_5n7z _2yak _4lj- _4jy0 _4jy4 _517h _51sy _42ft _42fr',
disabled: true,
onClick: function () {},
'data-tooltip-content': 'You have no changes to publish',
'data-hover': 'tooltip',
label: null,
type: 'submit',
value: '1',
},
React.createElement(ReactImage0, {x: 22}),
'Review Changes',
undefined
);
}
if (this.props.x === 45) {
return React.createElement(Link2, {x: 44});
}
if (this.props.x === 68) {
return React.createElement(
'button',
{
className: '_u_k _4jy0 _4jy4 _517h _51sy _42ft',
onClick: function () {},
label: null,
type: 'submit',
value: '1',
},
React.createElement(ReactImage0, {x: 67}),
'Create Campaign',
undefined
);
}
if (this.props.x === 71) {
return React.createElement(
'button',
{
className: '_u_k _3qx6 _p _4jy0 _4jy4 _517h _51sy _42ft',
label: null,
type: 'submit',
value: '1',
},
React.createElement(ReactImage0, {x: 70}),
undefined,
undefined
);
}
if (this.props.x === 77) {
return React.createElement(
'button',
{
'aria-label': 'Edit',
'data-tooltip-content': 'Edit Campaigns (Ctrl+U)',
'data-hover': 'tooltip',
className: '_d2_ _u_k noMargin _4jy0 _4jy4 _517h _51sy _42ft',
disabled: false,
onClick: function () {},
label: null,
Source
Frequently Asked Questions
What is the AbstractButton3 class?
AbstractButton3 is a class in the react codebase, defined in scripts/bench/benchmarks/pe-class-components/benchmark.js.
Where is AbstractButton3 defined?
AbstractButton3 is defined in scripts/bench/benchmarks/pe-class-components/benchmark.js at line 444.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free