Our application was able to produce write effects, through sinks, and was able to receive read effects, through the DOM sources. However, the main function only gets the DOMSource as input. This lessons shows how we can generalize main to receive an object of sources, containing all kinds of read effects that we can use.
Up to this lesson I had been working with rxjs5
, but I don't know the cycle.js
ecosystem well enough to discover the right import to factor in Cycle.run
.
I tried https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/7.0.0/cycle.js
, but that did not work.
Can you correct my reference? I wish to continue the lessons with rxjs5.
Hi Will. In this course we've been using RxJS version 4. In the JSBin you can see from the HTML tab which JS resources we are using, for instance https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/6.0.3/cycle.js
. We should update the course material to reflect the latest versions.
Here's a snippet working with RxJS 5: http://jsbin.com/voxereq/7/edit?js,console,output