docs: update arch view

This commit is contained in:
Yoshua Wuyts
2016-06-12 02:40:49 +02:00
parent 36b16a874a
commit 25fb0c1bdf
+6 -14
View File
@@ -204,20 +204,12 @@ In turn when the `views` are rendered, the `user` can interact with elements by
clicking on them, triggering `actions` which then flow back into the clicking on them, triggering `actions` which then flow back into the
application logic. This is the _unidirectional_ architecture of `choo`. application logic. This is the _unidirectional_ architecture of `choo`.
```txt ```txt
┌───────────────────────────┐ ┌──────── ┌─────────────────┐
┌─────────────────┐ │ │ User Subscriptions ─┤ User ───┐
├────│ Subscriptions │ │ └────────┘ └─ Effects ◀─────┤ ▼
│ ├─────────────────┤ │ │ ┌─ Reducers ◀───────Actions── DOM ◀┐
└────Effects │◀───┤
├─────────────────┤ Actions ────────┐ └▶ Router ─────State ───▶ Views ────
│ Reducers │◀───┴─────│ DOM │
Models──────────────┘ └────────┘
│ ▲
State DOM│tree
▼ │
┌────────┐ ┌────────┐
│ Router │─────State ───▶│ Views │
└────────┘ └────────┘
``` ```
- __user:__ 🙆 - __user:__ 🙆
- __DOM:__ the [Document Object Model][dom] is what is currently displayed in - __DOM:__ the [Document Object Model][dom] is what is currently displayed in