pre>
<hr>
<h3 id="passing-data-to-components"><a href="#passing-data-to-components">Passing data to components</a></h3>
<p>Data can be passed to component instances by passing an <code>attrs</code> object as the second parameter in the hyperscript function:</p>
<pre><code class="lang-javascript">m(Example, {name: &quot;Floyd&quot;})
</code></pre>
<p>This data can be accessed in the component&#39;s view or lifecycle methods via the <code>vnode.attrs</code>:</p>
<pre><code class="lang-javascript">var Example 