Interface for element classes.

interface ElementClass {
    onDestroy(): void;
    render(): Element;
}

Methods

  • Called when component is destroyed.

    Returns void

  • Renders the component into a JSX element.

    Returns Element

    The created JSX element.