Interface IComponent

Represents a component function. The function takes an element as its first argument and the attribute that matches it as its second argument. It may optionally receive further context arguments. It can return anything.

interface IComponent ((element, attr, ...context) => any)
  • Parameters

    • element: Element
    • attr: Attr
    • Rest ...context: any[]

    Returns any