nts, <a href="components.html">see the components page</a>.</p>
<hr>
<h3 id="lifecycle-methods"><a href="#lifecycle-methods">Lifecycle methods</a></h3>
<p>Vnodes and components can have lifecycle methods (also known as <em>hooks</em>), which are called at various points during the lifetime of a DOM element. The lifecycle methods supported by Mithril are: <code>oninit</code>, <code>oncreate</code>, <code>onupdate</code>, <code>onbeforeremove</code>, <code>onremove</code>, and <code>onbeforeupdate</code>.</p>