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

16 lines
276 B
JavaScript

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