example-mailbox: v1

This commit is contained in:
Yoshua Wuyts
2016-05-12 13:49:29 +07:00
parent 3655c488c2
commit 049d8f0cee
11 changed files with 151 additions and 1 deletions
+3 -1
View File
@@ -52,6 +52,8 @@ const tree = app.start()
document.body.appendChild(tree)
```
## Perform HTTP requests
## Concepts
- __state:__ a single object that contains all application state, should only
ever be modified by `reducers`
@@ -69,7 +71,7 @@ Create a new model. Models modify data and perform IO. Obj takes the following
arguments:
- __state:__ object. Key value store of initial values
- __reducers:__ object. Syncronous functions that modify state. Each function
has a signature of `(action, state)`
has a signature of `(action, state)`
- __effects:__ object. Asyncronous functions that perform IO. Each function has
a signature of `(action, state, send)` where `send` is a reference to
`app.send()`