s input parameters:</p>
<pre><code class="lang-javascript">// simple tag
m(&quot;div&quot;) // &lt;div&gt;&lt;/div&gt;

// attributes and children are optional
m(&quot;a&quot;, {id: &quot;b&quot;}) // &lt;a id=&quot;b&quot;&gt;&lt;/a&gt;
m(&quot;span&quot;, &quot;hello&quot;) // &lt;span&gt;hello&lt;/span&gt;

// tag with child nodes
m(&quot;ul&quot;, [             // &lt;ul&gt;
    m(&quot;li&quot;, &quot;hello&quot;), //   &lt;li&gt;hello&lt;/li&gt;
    m(&quot;li&quot;, &quot;world&quot;), //   &lt;li&gt