Blame view

天文台pc/tianwentai-ui/node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.d.ts 407 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  import * as React from 'react';
  /**
   * Returns the ref of a React node handling differences between React 19 and older versions.
   * It will return null if the node is not a valid React element.
   *
   * @param element React.ReactNode
   * @returns React.Ref<any> | null
   *
   * @deprecated Use getReactElementRef instead
   */
  export default function getReactNodeRef(element: React.ReactNode): React.Ref<any> | null;