resolveForwardRef
Lazily retrieves the reference value from a forwardRef.
See also
Description
Acts as the identity function when given a non-forward-ref value.
Further information is available in the Usage Notes...
Usage notes
Example
const ref = forwardRef(() => 'refValue');
expect(resolveForwardRef(ref as any)).toEqual('refValue');
expect(resolveForwardRef('regularValue')).toEqual('regularValue');