cally via a factory will always be re-created from scratch.</p>
<p>For that reason you should avoid recreating components. Instead, consume components idiomatically.</p>
<pre><code class="lang-javascript">// AVOID
var ComponentFactory = function(greeting) {
    // creates a new component on every call
    return {
        view: function() {
            return m(&quot;div&quot;, greeting)
        }
    }
}
m.render(document.body, m(ComponentFactory(&quot;hello&quot;)))
// calling a second time recreates div 