</a> to map routes to:</p>
<pre><code class="language-javascript">var Home = {
    view: function() {
        return [
            m(Menu),
            m(&quot;h1&quot;, &quot;Home&quot;)
        ]
    }
}

var Page1 = {
    view: function() {
        return [
            m(Menu),
            m(&quot;h1&quot;, &quot;Page 1&quot;)
        ]
    }
}</code></pre>
<p>In the example above, there are two components: <code>Home</code> and <code>Page1</code>. Each contains a menu and some text. The menu is itself b