MCPcopy Index your code
hub / github.com/microsoft/SandDance / ref

Function ref

docs/external/js/react-dom.development.js:13503–13516  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

13501 }
13502
13503 var ref = function (value) {
13504 var refs = inst.refs;
13505
13506 if (refs === emptyRefsObject) {
13507 // This is a lazy pooled frozen object, so we need to initialize.
13508 refs = inst.refs = {};
13509 }
13510
13511 if (value === null) {
13512 delete refs[stringRef];
13513 } else {
13514 refs[stringRef] = value;
13515 }
13516 };
13517
13518 ref._stringRef = stringRef;
13519 return ref;

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected