Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Component<Attributes, State, Actions, ToAttributes>

Type parameters

  • Attributes = {}

  • State = {}

  • Actions = {}

  • ToAttributes = {}

Hierarchy

  • Component

Callable

  • Component(attributes: Attributes, children: (string | VNode<{}>)[]): VNode<ToAttributes> | View<State, Actions>
  • A Component is a function that returns a custom VNode or View.

    remark

    In unmagical, we added ToAttributes type parameter.

    memberof

    [VDOM]

    Parameters

    • attributes: Attributes
    • children: (string | VNode<{}>)[]

    Returns VNode<ToAttributes> | View<State, Actions>

Generated using TypeDoc