ode>. This special parameter allows you to call methods on the DOM element after it gets created.</p>
<p>This is useful, for example, if you declare a <code>canvas</code> element and want to use the Javascript API to draw:</p>
<pre><code class="lang-javascript">function draw(element, isInitialized) {
   //don&#39;t redraw if we did once already
   if (isInitialized) return;

   var ctx = element.getContext(&quot;2d&quot;);
   /* draws stuff */
}

var view = [
   m(&quot;canvas&quot;, {config: draw})
]

//th