Interface ComponentClass<T>

Interface to implement by component classes.

interface ComponentClass<T extends Element = Element> {
    onDestroy(): void;
    render(): T;
}

Type Parameters

Methods

  • Called when component is destroyed.

    Returns void

  • Renders the component into a JSX element.

    Returns T

    The created JSX element.