vtils

Home > react > defineComponent

defineComponent() function

定义组件。

Signature:

export declare function defineComponent<TProps extends Record<string, any>, TRef extends any = any>(options: DefineComponentOptions<TProps, true, TRef>): React_2.ForwardRefExoticComponent<TProps & {
    ref?: React_2.Ref<TRef>;
}>;

Parameters

Parameter Type Description
options DefineComponentOptions<TProps, true, TRef> 选项

Returns:

React_2.ForwardRefExoticComponent<TProps & { ref?: React_2.Ref<TRef>; }>