Mastering Reactive JavaScript
上QQ阅读APP看书,第一时间看更新

Creating our first observable

The bacon.js gives us a multitude of methods to create observables. We can create them from DOM events, promises, interval, and so on. Sometimes we might need to create an observable from our own source, so let's learn how to create our own event streams.