ia the <code>vnode.state</code> property, which is available to all lifecycle methods as well as the <code>view</code> method of a component.</p>
<pre><code class="lang-javascript">var ComponentWithDynamicState = {
    oninit: function(vnode) {
        vnode.state.data = vnode.attrs.text
    },
    view: function(vnode) {
        return m(&quot;div&quot;, vnode.state.data)
    }
}

m(ComponentWithDynamicState, {text: &quot;Hello&quot;})

// Equivalent HTML
// &lt;div&gt;Hello&lt;/div&gt;
</code></pre>
<h4 i