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

9 lines
185 B
JavaScript

function Component(props) {
const x = {};
const y = [];
x.y = y;
const child = <Component data={y} />;
x.y.push(props.p0);
return <Component data={x}>{child}</Component>;
}