Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/for-of-mutate-item-of-local-collection.js
T
2026-08-27 21:09:14 +00:00

16 lines
322 B
JavaScript

import {makeObject_Primitives} from 'shared-runtime';
function Component(props) {
const items = [makeObject_Primitives(), makeObject_Primitives()];
for (const x of items) {
x.a += 1;
}
return items;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
sequentialRenders: [{}, {}, {}],
};