&quot;hello&quot;
    }
}
</code></pre>
<p>Like other types of virtual DOM nodes, components may have additional lifecycle methods defined when consumed as vnode types.</p>
<pre><code class="lang-javascript">function initialize() {
    console.log(&quot;initialized as vnode&quot;)
}

m(ComponentWithHooks, {oninit: initialize})
</code></pre>
<p>Lifecycle methods in vnodes do not override component methods, nor vice versa. Component lifecycle methods are always run after the vnode&#39;s corresponding method.<