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

16 lines
251 B
JavaScript

function Component(props) {
let x;
if (props.cond) {
[[x] = ['default']] = props.y;
} else {
x = props.fallback;
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: ['TodoAdd'],
isComponent: 'TodoAdd',
};