From 157fa414c6a4a0e622437a5ea230157d626d4def Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sun, 15 May 2016 18:02:03 +0700 Subject: [PATCH] docs: add architecture overview --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index da4a9d8..fae0f3d 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,20 @@ document.body.appendChild(tree) - __effects:__ asyncronous functions that perform IO. Effects can call `send()` when done to handle results - __subscriptions:__ streams of data that can either be written to or read from +```txt + ┌────────────────┐ + ┌─▶│ Subscriptions │──┐ + │ └────────────────┘ │ + │ ┌────────────────┐ │ + ├─▶│ Effects │──┤ + │ └────────────────┘ │ +┌──────────┐ │ ┌──────────┐ │ ┌───────┐ ┌──────┐ +│ Reducers │◀────┴─────│ Models │◀────┴─────│ DOM │◀──│ User │ +└──────────┘ Action └──────────┘ Action └───────┘ └──────┘ + │ ┌────────┐ ┌───────┐ ▲ + └─────────▶│ Router │──▶│ Views │───────────┘ + State └────────┘ └───────┘ DOM tree +``` ## Side effects ### HTTP