From 34c9572ed173b081c452c841c3bcce2cc8bbf60d Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 16 May 2016 03:25:08 +0700 Subject: [PATCH] docs: simplify graph again --- README.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2da729a..834c72c 100644 --- a/README.md +++ b/README.md @@ -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