A virtual DOMElement which is used by the Component API.
A VirtualElement is just a description of a DOM structure. It represents a virtual DOM mixed with Components. This virtual structure needs to be compiled to a Component to actually create a real DOM element, which is done by RenderingEngine
Associates a reference identifier with this element.
When rendered the corresponding component is stored in the owner using the given key. In addition to that, components with a reference are preserved when its parent is rerendered.
Attention: only the owner should use this method, as it only affects the owner's references
ref | String | id for the compiled Component |
Create a virtual DOM representation which is used by Component for differential/reactive rendering.
elementType | HTML tag name or Component class | |
[props] | a properties object for Component classes |
VirtualElement | a virtual DOM node |
Create a virtual DOM Element
$$('a').attr({href: './foo'}).addClass('se-nav-item')
Create a virtual Component
$$(HelloMessage, {name: 'John'})