Skip to main content
Version: 1.x

CreateElement

createElement​

The createElement function is used to create CommandKit elements.

Signature
function createElement(type: Function, props: Record<string, unknown>, children: any[]): CommandKitElement<ElementType>

Parameters

type​

parameter
Function

props​

parameter
Record<string, unknown>

children​

parameter
any[]