="bidirectional-bindings"><a href="#bidirectional-bindings">Bidirectional bindings</a></h4>
<p>Streams can also be populated from event callbacks and similar.</p>
<pre><code class="language-javascript">// a stream
var user = stream(&quot;&quot;)

// a bi-directional binding to the stream
m(&quot;input&quot;, {
    oninput: function (e) { user(e.target.value) },
    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