s = Auth
</code></pre>
<p>Then, we can clean up the component:</p>
<pre><code class="lang-javascript">// views/Login.js
// PREFER
var Auth = require(&quot;../models/Auth&quot;)

var Login = {
    view: function() {
        return m(&quot;.login&quot;, [
            m(&quot;input[type=text]&quot;, {oninput: m.withAttr(&quot;value&quot;, Auth.setUsername), value: Auth.username}),
            m(&quot;input[type=password]&quot;, {oninput: m.withAttr(&quot;value&quot;, Auth.setPassword), value: Auth.password}),
