 is to define an anonymous component in the routes map:</p>
<pre><code class="language-javascript">// example 1
m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: {
        view: function() {
            return m(Layout, m(Home))
        },
    },
    &quot;/form&quot;: {
        view: function() {
            return m(Layout, m(Form))
        },
    }
})</code></pre>
<p>However, note that because the top level component is an anonymous component, jumping from the <code>/</code> route to the <code>/