We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c00fea commit 99d8344Copy full SHA for 99d8344
src/ref.ts
@@ -45,7 +45,7 @@ export const supportRef = (nodeOrComponent: any): boolean => {
45
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
46
if (
47
isReactElement(nodeOrComponent) &&
48
- (nodeOrComponent as any).props.propertyIsEnumerable('ref')
+ React.version.startsWith('19.')
49
) {
50
return true;
51
}
0 commit comments