Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
10 lines
382 B
TypeScript
10 lines
382 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;
|