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