login}, &quot;Login&quot;)
        ])
    }
}

m.route(document.body, &quot;/secret&quot;, {
    &quot;/secret&quot;: {
        onmatch: function() {
            if (!localStorage.getItem(&quot;auth-token&quot;)) m.route.set(&quot;/login&quot;)
            else return Home
        }
    },
    &quot;/login&quot;: Login
})</code></pre>
<hr>
<h4 id="preloading-data"><a href="#preloading-data">Preloading data</a></h4>
<p>Typically, a component can load data upon initialization. Loading data this way renders th