change (assuming all routes use the same layout).</p>
<p>To clarify the difference between the two examples, example 1 is equivalent to this code:</p>
<pre><code class="language-javascript">// functionally equivalent to example 1
var Anon1 = {
    view: function() {
        return m(Layout, m(Home))
    },
}
var Anon2 = {
    view: function() {
        return m(Layout, m(Form))
    },
}

m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: {
        render: function() {
            return m(Anon1)
   