nction() {
                    vnode.state.count++
                }
            }, &quot;Increase count&quot;)
        )
    }
}

m.mount(document.body, {
    view: function(vnode) {
        return [
            m(&quot;h1&quot;, &quot;My app&quot;),
            m(Counter)
        ]
    }
})
</code></pre>

				<hr />
				<small>License: MIT. &copy; Leo Horie.</small>
			</section>
		</main>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js" defer></script>
		<script src="https: