From aaddc43d5ef8061476da5f335b28eeb13b69f076 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 7 Jun 2016 13:01:59 +0200 Subject: [PATCH] docs: clarify subscriptions --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 083bba7..da89fa0 100644 --- a/README.md +++ b/README.md @@ -186,9 +186,11 @@ document.body.appendChild(tree) ## Concepts `choo` cleanly structures internal data flow, so that all pieces of logic can be combined into a nice, cohesive machine. Internally all logic lives within -`models` that contain several properties. `subscriptions` are read-only streams -of data. `effects` react to changes, perform an `action` and can then post the -results. `reducers` take data, modify it, and update the internal `state`. +`models` that contain several properties. `subscriptions` are functions that +are called at startup and have `send()` passed in, so they act as read-only +sources of data. `effects` react to changes, perform an `action` and can then +post the results. `reducers` take data, modify it, and update the internal +`state`. Communication of data is done using objects called `actions`. Each `action` has any number of properties for data, and a unique `type` that can trigger