Compose is used to build and manage UI tree. The tree is not built directly with DOM elements but with Kilua components, which are kind of wrappers on top of DOM elements. At the same time every Kilua component can render itself to a String. So, starting from the root component, at any time we can access both a DOM element, with the whole DOM tree and a String with an html content of the current view.