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

Function ref

code/styling/public/app.js:8869–8876  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8867 return current.ref;
8868 }
8869 var ref = function (value) {
8870 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
8871 if (value === null) {
8872 delete refs[stringRef];
8873 } else {
8874 refs[stringRef] = value;
8875 }
8876 };
8877 ref._stringRef = stringRef;
8878 return ref;
8879 } else {

Callers 1

commitAttachRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected