JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://rawgit.com/baconjs/bacon.js/master/dist/Bacon.js"></script>
JavaScript
var i = 0,
streams = [],
noop = function () {},
onValue = function (value) {
var div = document.createElement('div');
div.innerHTML = value;
document.body.appendChild(div);
},
ITEMS_COUNT = 5000;
while (i++ < ITEMS_COUNT) {
var b = new Bacon.Bus(),
j = 3;
b.map('.whathever').onValue(onValue);
while (j--) {
b.map('.whathever').onValue(noop);
}
streams.push(b);
}
while (--i) {
streams[i - 1].push({
whathever: i
});
}