7. MVI PATTERN
intent() function
Purpose: interpret DOM events as user’s intended actions
Input: DOM source
Output: Action Streams
model() function
Purpose: manage state
Input: Action Streams
Output: State Stream
view() function
Purpose: visually represent state from the Model
Input: State Stream
Output: Stream of Virtual DOM nodes as the DOM Driver sink
8. API
Cycle.run(app, drivers)
app – main function
drivers – list of sources (drivers, sinks notations)
See more: http://cycle.js.org/documentation.html
9. DRIVERS
Drivers are plugin-like simple functions that take
messages from sinks and call imperative functions.
All side effects are contained in drivers.
This means your application is just a pure function, and it
becomes easy to swap drivers around.
See more: http://cycle.js.org/drivers.html