e called when we render this component, we can take advantage of component <a href="lifecycle-methods.html">lifecycle methods</a>:</p>
<pre><code class="lang-javascript">// src/views/UserList.js
var m = require(&quot;mithril&quot;)
var User = require(&quot;../models/User&quot;)

module.exports = {
    oninit: User.loadList,
    view: function() {
        return m(&quot;.user-list&quot;, User.list.map(function(user) {
            return m(&quot;.user-list-item&quot;, user.firstName + &quot; &quot; + user.las