thing})
    }
}

function doSomething() {
    // a redraw happens synchronously after this function runs
}

m.mount(document.body, MyComponent)
</code></pre>
<p>You can disable an auto-redraw for specific events by setting <code>e.redraw</code> to <code>false</code>.</p>
<pre><code class="lang-javascript">var MyComponent = {
    view: function() {
        return m(&quot;div&quot;, {onclick: doSomething})
    }
}

function doSomething(e) {
    e.redraw = false
    // no longer triggers a redraw when the div 