hook-call.js15 lines
mainRawfunction useFreeze() {}
function foo() {}
function Component(props) {
const x = [];
const y = useFreeze(x);
foo(y, x);
return (
<Component>
{x}
{y}
</Component>
);
}
Loading syntax highlighting…