Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an object that can be rendered as an HTML element. When the custom element is used in JSX, its constructor will be called, then render will be called with the properties and children the element has. As a result, render will be called once for each instance. The parameters being in render is due to technical limitations; if possible, they would be in the constructor, but no way to type check this has been found.

Hierarchy

  • CustomElement

Implemented by

Index

Methods

Methods

render

  • render(props: null | Props, children: HTMLElement[]): HTMLElement
  • Parameters

    • props: null | Props
    • children: HTMLElement[]

    Returns HTMLElement

Generated using TypeDoc