Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/capturing-function-within-block.js
T
2026-08-27 21:09:14 +00:00

17 lines
227 B
JavaScript

function component(a) {
let z = {a};
let x;
{
x = function () {
console.log(z);
};
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ['TodoAdd'],
isComponent: 'TodoAdd',
};