docs: simplify graph again

This commit is contained in:
Yoshua Wuyts
2016-05-16 03:25:08 +07:00
parent 3a32dfd12f
commit 34c9572ed1
+14 -15
View File
@@ -81,21 +81,20 @@ document.body.appendChild(tree)
- __views:__ take `state` and returns a new `DOM tree` that is rendered in the
browser
```txt
┌─────────────────────────────┐ ┌────────┐
─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐ │ │ User │
│ ┌─────────────────┐ │ └────────┘
├──┼─│ Subscriptions │ │ │ │
│ └─────────────────┘ │ ▼
│ ┌─────────────────┐ │ │ ┌────────┐
└────│ Effects │◀─────┼─────│ DOM │◀──────────────┐
│ └─────────────────┘ │ Actions └────────┘ DOM tree │
┌─────────────────┐
│ │ Reducers │◀┼────┘ │
└─────────────────┘
│ │ │ ┌────────┐ ┌────────┐
└────────────────────▶│ Router │────────▶│ Views │
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘ State └────────┘ State └────────┘
Model
┌───────────────────────────┐ ┌────────┐
─────────────────┐ │ │ User │
├────│ Subscriptions │ └────────┘
├─────────────────┤ │ │
└────│ Effects◀───┤
─────────────────┤ Actions ┌────────┐
│ Reducers │◀────────│ DOM │
Models──────────────┘ └────────┘
State DOM│tree
┌────────┐ ┌────────┐
│ Router │───────State ─▶│ Views │
└────────┘ └────────┘
```
## Effects