Revising the Main Function Using the JSONP Driver
Learn about the changes that need to be introduced in the main function when the JSONP driver is used.
We'll cover the following...
We may have noticed in the code of the Basic Understanding of Cycle.js lesson that the main
function takes a parameter, responses
, that it does not use. These are the responses that come from the drivers
function in the run
function. The drivers and the main
function form a cycle (hence the name of the framework): the output of the main
function is the input of the drivers
function, and the output of the drivers
function is the input for the main
function. And remember, input and outputs are always Observables.
We use JSONP to query Wikipedia, as we ...
Access this course and 1400+ top-rated courses and projects.