href="stream.html">the documentation</a>.</p>
<h3 id="v02x"><a href="#v02x"><code>v0.2.x</code></a></h3>
<pre><code class="lang-javascript">var m = require(&quot;mithril&quot;)

var num = m.prop(1)
</code></pre>
<h3 id="v1x"><a href="#v1x"><code>v1.x</code></a></h3>
<pre><code class="lang-javascript">var m = require(&quot;mithril&quot;)
var prop = require(&quot;mithril/stream&quot;)

var num = prop(1)
var doubled = num.map(function(n) {return n * 2})
</code></pre>
<hr>
<h2 id="mcomponent-removed"><a href="#