Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/capturing-func-alias-computed-mutate.js
2026-08-27 21:09:14 +00:00

18 lines
301 B
JavaScript

import {mutate} from 'shared-runtime';
function Component({a}) {
let x = {a};
let y = {};
const f0 = function () {
y['x'] = x;
};
f0();
mutate(y);
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: 2}],
sequentialRenders: [{a: 2}, {a: 2}, {a: 3}],
};