main
js 14 lines 197 Bytes
Raw
1 function useFreeze() {}
2 function foo() {}
3
4 function Component(props) {
5 const x = [];
6 const y = useFreeze(x);
7 foo(y, x);
8 return (
9 <Component>
10 {x}
11 {y}
12 </Component>
13 );
14 }