Html Component Reference

Table of Contents


Introduction

Syntax

tml`<div ...>...</>`
tml`<span ...>...</>`
etc.

The Html component creates an ordinary HTML DOM node. The component build process converts components with unpublished tag strings that start with a lower case letter into Html components. The Html component creates a DOM node of the type specified by the template tag using the template props as attributes. Templates returned by the render() method need not use Html components.

Attributes

The Html component passes all properties to the created DOM node. It can also accept the standard attributes.

Instance methods

These methods are intended to be used by parent components to dynamically change the properties of the rendered components without re-rendering.

Inherited methods

Children

The Html component accepts all children.

DOM element properties

The Html component renders a DOM not of the specified type with the specified props. If the data-cid prop is not set, then it is set of the ID of the Html component. Many Components set the data-cid prop of their first rendered Html child component to their component ID to make it easy to find for debugging.