Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/outlined-destructured-params.js
T
2026-08-27 21:09:14 +00:00

19 lines
423 B
JavaScript

import {Stringify} from 'shared-runtime';
function Component(props) {
// test outlined functions with destructured parameters - the
// temporary for the destructured param must be promoted
return (
<>
{props.items.map(({id, name}) => (
<Stringify key={id} name={name} />
))}
</>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{items: [{id: 1, name: 'one'}]}],
};