mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
15 lines
197 B
JavaScript
15 lines
197 B
JavaScript
function useFreeze() {}
|
|
function foo() {}
|
|
|
|
function Component(props) {
|
|
const x = [];
|
|
const y = useFreeze(x);
|
|
foo(y, x);
|
|
return (
|
|
<Component>
|
|
{x}
|
|
{y}
|
|
</Component>
|
|
);
|
|
}
|