function Component(props) { const x = []; {x}; const y = x.map((item) => item); return [x, y]; }