Installing Cycle.js

We could use Cycle.js by including it in an HTML page using <script><script> tags, but that would not be the best way to use it because Cycle.js is designed in an extremely modular way. Every module tries to be as self-sufficient as possible, and including several modules as scripts could easily load tons of duplicated code, causing unnecessary downloads and longer start-up times for our applications.

Instead, we’ll use the Node Package Manager, npm, and Browserify to generate the code for our final scripts. First we’ll create a new folder where the project will live, and install our project dependencies:

<= mkdir wikipedia-search && cd wikipedia-search
 npm install browserify
 npm install @cycle/core
 npm install @cycle/dom ...

Get Reactive Programming with RxJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.