view: function() {
        return m(&quot;a&quot;, {onclick: function() {if (!condition) m.route.set(&quot;/&quot;)}})
    }
}
</code></pre>
<hr>
<h2 id="run-code-on-component-removal"><a href="#run-code-on-component-removal">Run code on component removal</a></h2>
<p>Components no longer call <code>this.onunload</code> when they are being removed. They now use the standardized lifecycle hook <code>onremove</code>.</p>
<h3 id="v02x16"><a href="#v02x16"><code>v0.2.x</code></a></h3>
<pre><code class="lang-java