                        // &lt;/ul&gt;

// ES6:
// m(&quot;ul&quot;, users.map(u =&gt;
//   m(&quot;li&quot;, u.name)
// ))
</code></pre>
<h4 id="conditionals"><a href="#conditionals">Conditionals</a></h4>
<p>Use the ternary operator to conditionally set content on a view</p>
<pre><code class="lang-javascript">var isError = false

m(&quot;div&quot;, isError ? &quot;An error occurred&quot; : &quot;Saved&quot;) // &lt;div&gt;Saved&lt;/div&gt;
</code></pre>
<p>You cannot use Javascript statements such as <code