Files
react/compiler/crates/react_hermes_parser/tests/fixtures/reassignment-conditional.js
2024-04-02 16:49:31 -07:00

14 lines
170 B
JavaScript

function Component(props) {
let x = [];
x.push(props.p0);
let y = x;
if (props.p1) {
x = [];
}
y.push(props.p2);
return <Component x={x} y={y} />;
}