Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/array-map-mutable-array-non-mutating-lambda-mutated-result.js
T
2026-08-27 21:09:14 +00:00

15 lines
231 B
JavaScript

function Component(props) {
const x = [{}];
const y = x.map(item => {
return item;
});
y[0].flag = true;
return [x, y];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
isComponent: false,
};