omponent that contains the common markup that will wrap around the various different components:</p>
<pre><code class="language-javascript">var Layout = {
    view: function(vnode) {
        return m(&quot;.layout&quot;, vnode.children)
    }
}</code></pre>
<p>In the example above, the layout merely consists of a <code>&lt;div class=&quot;layout&quot;&gt;</code> that contains the children passed to the component, but in a real life scenario it could be as complex as needed.</p>
<p>One way to wrap the layout