get&quot;&gt;&lt;/div&gt;

m(&quot;div&quot;, {className: &quot;widget&quot;}); //yields &lt;div class=&quot;widget&quot;&gt;&lt;/div&gt;

m(&quot;input&quot;, {readonly: true}); //yields &lt;input readonly /&gt;

m(&quot;button&quot;, {onclick: alert}); //yields &lt;button&gt;&lt;/button&gt;, which alerts its event argument when clicked</code></pre>
<hr>
<p>Note that you can use JSON syntax if the attribute name you are setting has non-alphanumeric characters:</p>
<pre><code class="lang-javascript">m(&quot