Searched refs:refProp (Results 1 – 3 of 3) sorted by relevance
14 function setRef(refProp, ref) { argument15 if (!refProp)17 if (typeof refProp === 'function') {18 refProp(ref);20 else if ('current' in refProp) {22 refProp.current = ref;
1 …refProp: React.Ref<T>, ref: T | null) {\n if (!refProp) return;\n\n if (typeof refProp === 'func…
15 function setRef<T>(refProp: React.Ref<T>, ref: T | null) {16 if (!refProp) return;18 if (typeof refProp === 'function') {19 refProp(ref);20 } else if ('current' in refProp) {22 refProp.current = ref;