From 25fb0c1bdfb08470e23df5b23f80412e9286f0f7 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sun, 12 Jun 2016 02:40:49 +0200 Subject: [PATCH] docs: update arch view --- README.md | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 719dc02..f43d520 100644 --- a/README.md +++ b/README.md @@ -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 application logic. This is the _unidirectional_ architecture of `choo`. ```txt - ┌───────────────────────────┐ ┌────────┐ - │ ┌─────────────────┐ │ │ User │ - ├────│ Subscriptions │ │ └────────┘ - │ ├─────────────────┤ │ │ - └────│ Effects │◀───┤ ▼ - ├─────────────────┤ Actions ┌────────┐ - │ Reducers │◀───┴─────│ DOM │ - Models──────────────┘ └────────┘ - │ ▲ - State DOM│tree - ▼ │ - ┌────────┐ ┌────────┐ - │ Router │─────State ───▶│ Views │ - └────────┘ └────────┘ + ┌─────────────────┐ + │ Subscriptions ─┤ User ───┐ + └─ Effects ◀─────┤ ▼ + ┌─ Reducers ◀─────┴──Actions── DOM ◀┐ + │ │ + └▶ Router ─────State ───▶ Views ────┘ ``` - __user:__ 🙆 - __DOM:__ the [Document Object Model][dom] is what is currently displayed in