MCPcopy Create free account
hub / github.com/microsoft/SandDance / mountRef

Function mountRef

docs/external/js/react-dom.development.js:15410–15422  ·  view source on GitHub ↗
(initialValue)

Source from the content-addressed store, hash-verified

15408 }
15409
15410 function mountRef(initialValue) {
15411 var hook = mountWorkInProgressHook();
15412 var ref = {
15413 current: initialValue
15414 };
15415
15416 {
15417 Object.seal(ref);
15418 }
15419
15420 hook.memoizedState = ref;
15421 return ref;
15422 }
15423
15424 function updateRef(initialValue) {
15425 var hook = updateWorkInProgressHook();

Callers 1

Calls 1

mountWorkInProgressHookFunction · 0.85

Tested by

no test coverage detected