r order functions, such as <a href="withAttr.html"><code>m.withAttr</code></a></p>
<pre><code class="lang-javascript">// a stream
var user = stream(&quot;&quot;)

// a bi-directional binding to the stream
m(&quot;input&quot;, {
    oninput: m.withAttr(&quot;value&quot;, user),
    value: user()
})
</code></pre>
<p>In the example above, when the user types in the input, the <code>user</code> stream is updated to the value of the input field.</p>
<h4 id="computed-properties"><a href="#computed-properties">Com