</code> hook causes the link to behave as a router link (i.e. it navigates to the route specified in <code>href</code>, instead of navigating away from the current page to the URL specified in <code>href</code>.</p>
<p>If the <code>href</code> attribute is not static, the <code>onupdate</code> hook must also be set:</p>
<pre><code class="language-JS">m(&quot;a&quot;, {href: someVariable, oncreate: m.route.link, onupdate: m.route.link})</code></pre>
<p><code>m.route.link</code> can also set the <code>options