Options
All
  • Public
  • Public/Protected
  • All
Menu

Creates elements (both custom elements and standard HTML elements) for JSX

Hierarchy

  • ElementCreator

Implemented by

Index

Methods

Methods

create

  • create(tag: string | (new () => CustomElement), props: null | Props, children: HTMLElement[]): HTMLElement
  • Create an HTML element from a JSX tag

    Parameters

    • tag: string | (new () => CustomElement)

      Tag name of the element (eg. div) or the class of a custom element

    • props: null | Props

      Properties of the element

    • children: HTMLElement[]

      Children of the element

    Returns HTMLElement

Generated using TypeDoc