mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
9 lines
185 B
JavaScript
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>;
|
|
}
|