"lang-javascript">// EXAMPLE: via m.render
m.render(document.body, m(ES6ClassComponent))

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

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

// EXAMPLE: component composition
class AnotherES6ClassComponent {
    view() {
        return m(&quot;main&quot;, [
            m(ES6ClassComponent)
        ])
    }
}
</code></pre>
<h4 id="closure-components"><a href="#closure-components">Closure c