nent = {
    view: function() {
        return [
            // a redraw happens asynchronously after the route changes
            m(&quot;a&quot;, {href: &quot;/&quot;, oncreate: m.route.link}),
            m(&quot;div&quot;, {
                onclick: function() {
                    m.route.set(&quot;/&quot;)
                }
            }),
        ]
    }
}

m.route(document.body, &quot;/&quot;, {
    &quot;/&quot;: RoutedComponent,
})
</code></pre>
<hr>
<h3 id="when-mithril-does-not-redraw"><a href=