view so that we can navigate from there to a <code>UserForm</code>:</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;a.user-list-item&quot;, {href: &quot;/edit/&quot; + user.id, oncreate: m.route.link}, user.firstName + &quot; &quot; + user.las