f="#advanced-component-resolution">Advanced component resolution</a></h3>
<p>Instead of mapping a component to a route, you can specify a RouteResolver object. A RouteResolver object contains a <code>onmatch()</code> and/or a <code>render()</code> method. Both methods are optional but at least one of them must be present.</p>
<pre><code class="language-javascript">m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: {
        onmatch: function(args, requestedPath, route) {
            return Home
    