n be written in the same way as regular component views would be, by nesting <code>m()</code> calls.</p>
<p>The interesting thing to pay attention to is how components can be used instead of a selector string in a <code>m()</code> call. Here, in the <code>/list</code> route, we have <code>m(Layout, m(UserList))</code>. This means there&#39;s a root vnode that represents an instance of <code>Layout</code>, which has a <code>UserList</code> vnode as its only child.</p>
<p>In the <code>/edit/:id</code> route, 