master
export default function resolveElement(ref) { if (typeof ref === 'function') { const ret = ref(); return ret && ret.current; } return ref && ref.current; }