state.count ),

            m(&quot;button&quot;, {
                onclick: function() {
                    vnode.state.count++
                }
            }, &quot;Increase count&quot;)
        )
    }
}

var counter = m(Counter)

m.mount(document.body, {
    view: function(vnode) {
        return [
            m(&quot;h1&quot;, &quot;My app&quot;),
            counter
        ]
    }
})
</code></pre>
<p>In the example above, clicking the counter component button will increase its state count, but its 