Documentation / @ripl/core / createElement
Function: createElement() ​
createElement(...
options):Element<Partial<BaseState>,ElementEventMap>
Defined in: packages/core/src/core/element.ts:1032
Factory function that creates a new Element instance.
Parameters ​
| Parameter | Type |
|---|---|
...options | [string, ElementOptions<Partial<BaseState>>, Partial<Omit<ElementOptions<Partial<BaseState>>, "data" | "id" | "class">>] |
Returns ​
Element<Partial<BaseState>, ElementEventMap>