__CreateElement
Introduction
Creates an Element object.
Syntax
Parameters
Return Value
The return value is currently a Value_RefCounted type of lepus::Value, which is implemented as base::scoped_refptr<Element>.
Note
base::scoped_refptr<Element> manages the lifecycle of the Element based on reference counting. Therefore, the frontend framework can hold this return value to manage the Element's lifecycle. The Element will only be destroyed when the frontend framework no longer holds it and the Element is removed from the tree.
Example
The frontend framework can process the corresponding frontend tags into render directives as follows.