 you would expect, doing so creates this markup:</p>
<pre><code class="lang-markup">&lt;main&gt;
    &lt;h1 class=&quot;title&quot;&gt;My first app&lt;/h1&gt;
    &lt;button&gt;A button&lt;/button&gt;
&lt;/main&gt;
</code></pre>
<p>The <code>m.mount</code> function is similar to <code>m.render</code>, but instead of rendering some HTML only once, it activates Mithril&#39;s auto-redrawing system. To understand what that means, let&#39;s add some events:</p>
<pre><code class="lang-javascript">var count = 0 //