Core API Overview > @adpt/core > createElement
createElement() function
Signature:
export declare function createElement<Props extends object>(ctor: string | FunctionComponentTyp<Props> | ClassComponentTyp<Props, AnyState>, props: ExcludeInterface<Props, Children<any>> & Partial<BuiltinProps>, ...children: ChildType<Props>[]): AdaptElement;
Parameters
| Parameter | Type | Description |
|---|---|---|
| ctor | string |FunctionComponentTyp<Props> |ClassComponentTyp<Props, AnyState> | |
| props | ExcludeInterface<Props, Children<any>> &Partial<BuiltinProps> | |
| children | ChildType<Props>[] |
Returns: