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

Function ref

code/composition/public/app.js:9007–9014  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

9005 return current.ref;
9006 }
9007 var ref = function (value) {
9008 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
9009 if (value === null) {
9010 delete refs[stringRef];
9011 } else {
9012 refs[stringRef] = value;
9013 }
9014 };
9015 ref._stringRef = stringRef;
9016 return ref;
9017 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected