1
0
Fork 0
react-playground/node_modules/@mui/utils/getReactElementRef/getReactElementRef.d.ts

9 lines
No EOL
381 B
TypeScript

import * as React from 'react';
/**
* Returns the ref of a React element handling differences between React 19 and older versions.
* It will throw runtime error if the element is not a valid React element.
*
* @param element React.ReactElement
* @returns React.Ref<any> | null
*/
export default function getReactElementRef(element: React.ReactElement): React.Ref<any> | null;