8 lines
121 B
JavaScript
8 lines
121 B
JavaScript
function Component(props) {
|
|
const x = [];
|
|
x.push(props.value);
|
|
const {length: y} = x;
|
|
foo(y);
|
|
return [x, y];
|
|
}
|