MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / ref

Function ref

code/new-context-api/public/app.js:8230–8237  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8228 return current.ref;
8229 }
8230 var ref = function (value) {
8231 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8232 if (value === null) {
8233 delete refs[stringRef];
8234 } else {
8235 refs[stringRef] = value;
8236 }
8237 };
8238 ref._stringRef = stringRef;
8239 return ref;
8240 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected