treeloom-components
    Preparing search index...

    Function element

    • Create the DomItem of a real HTML element.

      Parameters

      • nodeName: string

        a tag name, e.g. 'div'

      • children: DomItem[] = []
      • OptionalclassName: string

        left out of attributes entirely when not given, instead of setting an empty className

      • attributes: Attributes = {}

      Returns DomItem