Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/destructuring-object-pattern-within-rest.js
T
2026-08-27 21:09:14 +00:00

10 lines
178 B
JavaScript

function Component(props) {
const [y, ...{z}] = props.value;
return [y, z];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{value: ['y', {z: 'z!'}]}],
};