Used to retrieve the props a custom component accepts with its ref.
Unlike ComponentPropsWithRef, this only works with custom components, i.e. components you define yourself. This is to improve type-checking performance.
const MyComponent = (props: { foo: number, bar: string }) => <div />;// Retrieves the props 'MyComponent' acceptstype MyComponentPropsWithRef = React.CustomComponentPropsWithRef<typeof MyComponent>; Copy
const MyComponent = (props: { foo: number, bar: string }) => <div />;// Retrieves the props 'MyComponent' acceptstype MyComponentPropsWithRef = React.CustomComponentPropsWithRef<typeof MyComponent>;
Used to retrieve the props a custom component accepts with its ref.
Unlike ComponentPropsWithRef, this only works with custom components, i.e. components you define yourself. This is to improve type-checking performance.