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

7 lines
116 B
JavaScript

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