   m(Menu),
            m(&quot;h1&quot;, &quot;Editing &quot; + vnode.attrs.id)
        ]
    }
}
m.route(document.body, &quot;/edit/1&quot;, {
    &quot;/edit/:id&quot;: Edit,
})</code></pre>
<p>In the example above, we defined a route <code>/edit/:id</code>. This creates a dynamic route that matches any URL that starts with <code>/edit/</code> and is followed by some data (e.g. <code>/edit/1</code>, <code>edit/234</code>, etc). The <code>id</code> value is then mapped as an attribute of the component&#39