is bootstrapped solely via <code>m.render</code> calls).</p>
<p>The auto-redraw system simply consists of triggering a re-render function behind the scenes after certain functions complete.</p>
<h3 id="after-event-handlers"><a href="#after-event-handlers">After event handlers</a></h3>
<p>Mithril automatically redraws after DOM event handlers that are defined in a Mithril view:</p>
<pre><code class="lang-javascript">var MyComponent = {
    view: function() {
        return m(&quot;div&quot;, {onclick: doSome