Components in maomi are low-cost abstractions. Some web frameworks have a significant overhead with components, but maomi only has a little. Sometimes components can help improve performance.
Like DOM elements, a component can be used as tags.
The component can put a "<slot />" tag in the template. It will be replaced with the child nodes in its users.
It is able to pass data in the slot with "data" attribute. Its users can retrieve the reference of the data with "slot:xxx" attributes.
Besides it, the slot data type should be specified with the "SlotData" attribute argument.