Use the Cycle.js run() Function

InstructorAndré Staltz

Share this video with your friends

Send Tweet

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.

wil
~ 7 years ago

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.

André Staltzinstructor
~ 7 years ago

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.

Xavier
~ 7 years ago

Here's a snippet working with RxJS 5: http://jsbin.com/voxereq/7/edit?js,console,output