ction() {},

    view : function(ctrl, options) {
        // ...
    }
})
</code></pre>
<h3 id="v1x7"><a href="#v1x7"><code>v1.x</code></a></h3>
<pre><code class="lang-javascript">m.mount(document.body, {
    oninit : function(vnode) {
        // ...
    },

    view : function(vnode) {
        // Use vnode.state instead of ctrl
        // Use vnode.attrs instead of options
    }
})
</code></pre>
<hr>
<h2 id="passing-components-to-m"><a href="#passing-components-to-m">Passing components to <code>m()</code><