Flow-based Programming is all about reacting to event sources. Event sources in the browser might be:
- A DOM event
- AJAX call
- Onload initial data passing
- Local DB fetch (local storage, indexdb)
In order to build larger systems, nodes need to be chainable and flows need to be composable. I think the best way to do this in Javascript may look something like this: