Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/hook-call.js
T

15 lines
197 B
JavaScript
Raw Normal View History

2026-08-27 21:09:14 +00:00
function useFreeze() {}
function foo() {}
function Component(props) {
const x = [];
const y = useFreeze(x);
foo(y, x);
return (
<Component>
{x}
{y}
</Component>
);
}