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

Function ref

code/event-handlers/public/app.js:8199–8206  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8197 return current.ref;
8198 }
8199 var ref = function (value) {
8200 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8201 if (value === null) {
8202 delete refs[stringRef];
8203 } else {
8204 refs[stringRef] = value;
8205 }
8206 };
8207 ref._stringRef = stringRef;
8208 return ref;
8209 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected