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

Function ref

code/dependency-injection/public/app.js:8962–8969  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8960 return current.ref;
8961 }
8962 var ref = function (value) {
8963 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8964 if (value === null) {
8965 delete refs[stringRef];
8966 } else {
8967 refs[stringRef] = value;
8968 }
8969 };
8970 ref._stringRef = stringRef;
8971 return ref;
8972 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected