https://github.com/nem035/cycle-js-fun
CycleJSFun
https://github.com/nem035/cycle-js-fun
cyclejs javascript reactive reactive-programming
Last synced: over 1 year ago
JSON representation
CycleJSFun
- Host: GitHub
- URL: https://github.com/nem035/cycle-js-fun
- Owner: nem035
- Created: 2017-03-11T08:34:29.000Z (over 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-03-11T19:43:53.000Z (over 9 years ago)
- Last Synced: 2025-02-08T22:12:49.071Z (over 1 year ago)
- Topics: cyclejs, javascript, reactive, reactive-programming
- Language: JavaScript
- Homepage: https://nem035.github.io/cycle-js-fun/
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CycleJSFun
Messing around with [CycleJS](https://cycle.js.org/).
[Live Page](https://nem035.github.io/cycle-js-fun/)
## Notes:
Principle: Separate Logic from Drivers (effects).
Logic is functional
Drivers are imperative
Developer writes the logic, framework drives the effects.
Sources : input (read) effects
Sinks : output (write) effects
CycleJS -> Proxies
How to do?
```js
a = f(b)
b = g(a)
// With proxies:
bProxy = ...
a = f(bProxy)
b = g(a)
bProxy.imitate(b)
```
CycleJS is essentially a loop of read/write effects
[Model/View/Intent](https://cycle.js.org/model-view-intent.html)