This is a convenience method to compose virtual elements that can be rendered via <a href="mithril.render"><code>m.render()</code></a>.</p>
<p>You are encouraged to use CSS selectors to define virtual elements. See &quot;Signature&quot; section for details.</p>
<hr>
<h3 id="usage">Usage</h3>
<p>You can use simple tag selectors to make templates resemble HTML:</p>
<pre><code class="lang-javascript">m(&quot;br&quot;); //yields a virtual element that represents &lt;br&gt;

m(&quot;div&quot;, &quot;Hello&quot;)