turn m(&#39;i&#39;, &#39;hello&#39;)}})
m.mount(element, {view: function () {return m(Component, attrs)}})

m.route(element, &#39;/&#39;, {
    &#39;/&#39;: {view: function () {return m(&#39;b&#39;, &#39;bye&#39;)}}
})
</code></pre>
<hr>
<h2 id="mroutemode"><a href="#mroutemode"><code>m.route.mode</code></a></h2>
<p>In <code>v0.2.x</code> the routing mode could be set by assigning a string of <code>&quot;pathname&quot;</code>, <code>&quot;hash&quot;</code>, or <code>&quot;search&quot;</code> to <code>m.rout