Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/object-expression-computed-key-modified-during-after-construction.js
2026-08-27 21:09:14 +00:00

17 lines
357 B
JavaScript

import {identity, mutate, mutateAndReturn} from 'shared-runtime';
function Component(props) {
const key = {};
const context = {
[mutateAndReturn(key)]: identity([props.value]),
};
mutate(key);
return context;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{value: 42}],
sequentialRenders: [{value: 42}, {value: 42}],
};