municate with a server, we can use Mithril&#39;s XHR utility, <code>m.request</code>. First, we include Mithril in the module:</p>
<pre><code class="lang-javascript">// src/models/User.js
var m = require(&quot;mithril&quot;)

var User = {
    list: []
}

module.exports = User
</code></pre>
<p>Next we create a function that will trigger an XHR call. Let&#39;s call it <code>loadList</code></p>
<pre><code class="lang-javascript">// src/models/User.js
var m = require(&quot;mithril&quot;)

var User = {
    list: