vtils

Home > react > defineComponent

defineComponent() function

定义组件。

Signature:

export declare function defineComponent<TProps extends Record<string, any>, TRef extends any = any>(options: DefineComponentOptions<TProps, false>): React_2.FC<TProps>;

Parameters

Parameter Type Description
options DefineComponentOptions<TProps, false> 选项

Returns:

React_2.FC<TProps>