mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
14 lines
170 B
JavaScript
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} />;
|
|
}
|