irst argument to <code>m()</code> instead of passing a CSS selector string. You can pass arguments to the component by defining attributes and children, as shown in the example below.</p>
<pre><code class="lang-javascript">// define a component
var Greeter = {
    view: function(vnode) {
        return m(&quot;div&quot;, vnode.attrs, [&quot;Hello &quot;, vnode.children])
    }
}

// consume it
m(Greeter, {style: &quot;color:red;&quot;}, &quot;world&quot;)

// equivalent HTML:
// &lt;div style=&quot;color:re