A few code sample of ideas for native CycleJS component encapsulation, instead of the global nature of the current drivers.
See cyclejs/cyclejs#259 for details.
$ npm install
$ npm start
Check out the different versions of the same sample app:
- standard: non-isolated example with conflicting components
- standard-isolate: example with components explicitly isolated using isolate
- alternative-listeners: example with alternative DOM driver and listener API (using virtual-dom hooks)
- alternative-listeners-explicit: same as alternative-listeners but requiring to explicitly request the events for a listener/token through the driver