MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / ref

Function ref

code/communication/public/app.js:8904–8911  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8902 return current.ref;
8903 }
8904 var ref = function (value) {
8905 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8906 if (value === null) {
8907 delete refs[stringRef];
8908 } else {
8909 refs[stringRef] = value;
8910 }
8911 };
8912 ref._stringRef = stringRef;
8913 return ref;
8914 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected