Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/duplicate-named-function-expression-names.tsx
Boshen 33d4ed9dec fix(react-compiler): preserve unreferenced function expression names (#25733)
Preserve named function expression names when the private name is unreferenced. This matches React Compiler lowering and avoids changing observable `Function.name` values.

Validated with `just ready`.

AI-assisted.
2026-08-16 05:27:34 +00:00

18 lines
333 B
TypeScript

export function Component({ value }) {
const columns = [
{
render: function Render(input) {
const copy = input;
return copy + value;
},
},
{
render: function Render(input) {
const copy = input;
return copy + value;
},
},
];
return <div>{columns}</div>;
}