you use the same code to both create and update HTML. Mithril automatically figures out the most efficient way of updating the text, rather than blindly recreating it from scratch.</p>
<hr>
<h3 id="dom-elements">DOM elements</h3>
<p>Let&#39;s wrap our text in an <code>&lt;h1&gt;</code> tag.</p>
<pre><code class="lang-javascript">m.render(root, m(&quot;h1&quot;, &quot;My first app&quot;))
</code></pre>
<p>The <code>m()</code> function can be used to describe any HTML structure you want. So if you to add a cl