docs: add architecture overview

This commit is contained in:
Yoshua Wuyts
2016-05-15 18:02:03 +07:00
parent 1481cb0f6c
commit 157fa414c6
+14
View File
@@ -62,6 +62,20 @@ document.body.appendChild(tree)
- __effects:__ asyncronous functions that perform IO. Effects can call
`send()` when done to handle results
- __subscriptions:__ streams of data that can either be written to or read from
```txt
┌────────────────┐
┌─▶│ Subscriptions │──┐
│ └────────────────┘ │
│ ┌────────────────┐ │
├─▶│ Effects │──┤
│ └────────────────┘ │
┌──────────┐ │ ┌──────────┐ │ ┌───────┐ ┌──────┐
│ Reducers │◀────┴─────│ Models │◀────┴─────│ DOM │◀──│ User │
└──────────┘ Action └──────────┘ Action └───────┘ └──────┘
│ ┌────────┐ ┌───────┐ ▲
└─────────▶│ Router │──▶│ Views │───────────┘
State └────────┘ └───────┘ DOM tree
```
## Side effects
### HTTP