script">m(component)
</code></pre>
<hr>
<h2 id="config-function"><a href="#config-function"><code>config</code> function</a></h2>
<p>In <code>v0.2.x</code> mithril provided a single lifecycle method, <code>config</code>. <code>v1.x</code> provides much more fine-grained control over the lifecycle of a vnode.</p>
<h3 id="v02x2"><a href="#v02x2"><code>v0.2.x</code></a></h3>
<pre><code class="lang-javascript">m(&quot;div&quot;, {
    config : function(element, isInitialized) {
        // runs on each redraw
  