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

Function ref

code/third-party/public/app.js:8102–8109  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8100 return current.ref;
8101 }
8102 var ref = function (value) {
8103 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8104 if (value === null) {
8105 delete refs[stringRef];
8106 } else {
8107 refs[stringRef] = value;
8108 }
8109 };
8110 ref._stringRef = stringRef;
8111 return ref;
8112 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected