resolveForwardRef
Lazily retrieves the reference value from a forwardRef.
参见
说明
Acts as the identity function when given a non-forward-ref value.
使用说明
Example
const ref = forwardRef(() => 'refValue');
expect(resolveForwardRef(ref as any)).toEqual('refValue');
expect(resolveForwardRef('regularValue')).toEqual('regularValue');