from scratch rather than doing nothing
m.render(document.body, m(ComponentFactory(&quot;hello&quot;)))

// PREFER
var Component = {
    view: function(vnode) {
        return m(&quot;div&quot;, vnode.attrs.greeting)
    }
}
m.render(document.body, m(Component, {greeting: &quot;hello&quot;}))
// calling a second time does not modify DOM
m.render(document.body, m(Component, {greeting: &quot;hello&quot;}))
</code></pre>
<h5 id="avoid-creating-component-instances-outside-views"><a href="#avoid-creating-componen