omponent object will be accessible as a property of <code>vnode.state</code>. This allows simple state initialization.</p>
<p>In the example below, <code>data</code> is a property of the <code>ComponentWithInitialState</code> component&#39;s state object.</p>
<pre><code class="lang-javascript">var ComponentWithInitialState = {
    data: &quot;Initial content&quot;,
    view: function(vnode) {
        return m(&quot;div&quot;, vnode.state.data)
    }
}

m(ComponentWithInitialState)

// Equivalent HTML
// &lt