ain as expected.</p>
<hr>
<p>Let&#39;s render the view from the entry point file <code>src/index.js</code> we created earlier:</p>
<pre><code class="lang-javascript">// src/index.js
var m = require(&quot;mithril&quot;)

var UserList = require(&quot;./views/UserList&quot;)

m.mount(document.body, UserList)
</code></pre>
<p>The <code>m.mount</code> call renders the specified component (<code>UserList</code>) into a DOM element (<code>document.body</code>), erasing any DOM that was there previously. Opening th