Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/destructure-array-assignment-to-context-var.js
T
2026-08-27 21:09:14 +00:00

17 lines
270 B
JavaScript

import {identity} from 'shared-runtime';
function Component(props) {
let x;
[x] = props.value;
const foo = () => {
x = identity(props.value[0]);
};
foo();
return {x};
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{value: [42]}],
};