Files
react/compiler/crates/react_hermes_parser/tests/fixtures/array-map-frozen-array.js
T

7 lines
116 B
JavaScript

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