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 - __views:__ take `state` and returns a new `DOM tree` that is rendered in the
browser browser
```txt ```txt
┌─────────────────────────────┐ ┌────────┐ ┌───────────────────────────┐ ┌────────┐
─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐ │ │ User │ ─────────────────┐ │ │ User │
│ ┌─────────────────┐ │ └────────┘ ├────│ Subscriptions │ └────────┘
├──┼─│ Subscriptions │ │ │ │ ├─────────────────┤ │ │
│ └─────────────────┘ │ ▼ └────│ Effects◀───┤
│ ┌─────────────────┐ │ │ ┌────────┐ ─────────────────┤ Actions ┌────────┐
└────│ Effects │◀─────┼─────│ DOM │◀──────────────┐ │ Reducers │◀────────│ DOM │
│ └─────────────────┘ │ Actions └────────┘ DOM tree │ Models──────────────┘ └────────┘
┌─────────────────┐
│ │ Reducers │◀┼────┘ │ State DOM│tree
└─────────────────┘
│ │ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐
└────────────────────▶│ Router │────────▶│ Views │ │ Router │───────State ─▶│ Views │
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘ State └────────┘ State └────────┘ └────────┘ └────────┘
Model
``` ```
## Effects ## Effects