
}
</code></pre>
<p>The returned object must hold a <code>view</code> function, used to get the tree to render.</p>
<p>They can be consumed in the same way regular components can.</p>
<pre><code class="lang-javascript">// EXAMPLE: via m.render
m.render(document.body, m(closureComponent))

// EXAMPLE: via m.mount
m.mount(document.body, closureComponent)

// EXAMPLE: via m.route
m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: closureComponent
})

// EXAMPLE: component composition
function anotherCl