docs: clean up slightly
This commit is contained in:
@@ -9,20 +9,20 @@ A framework for creating sturdy web applications. Built on years of industry
|
|||||||
experience it distills the essence of functional architectures into a
|
experience it distills the essence of functional architectures into a
|
||||||
productive package.
|
productive package.
|
||||||
|
|
||||||
- [features](#features)
|
- [Features](#features)
|
||||||
- [demos](#demos)
|
- [Demos](#demos)
|
||||||
- [usage](#usage)
|
- [Usage](#usage)
|
||||||
- [concepts](#concepts)
|
- [Concepts](#concepts)
|
||||||
- [effects](#effects)
|
- [Effects](#effects)
|
||||||
- [HTTP](#http)
|
- [HTTP](#http)
|
||||||
- [subscriptions](#subscriptions)
|
- [Subscriptions](#subscriptions)
|
||||||
- [server sent events](#server-sent-events-sse)
|
- [server sent events](#server-sent-events-sse)
|
||||||
- [keyboard](#keyboard)
|
- [keyboard](#keyboard)
|
||||||
- [websockets](#websockets)
|
- [websockets](#websockets)
|
||||||
- [API](#api)
|
- [API](#api)
|
||||||
- [FAQ](#faq)
|
- [FAQ](#faq)
|
||||||
- [installation](#installation)
|
- [Installation](#installation)
|
||||||
- [license](#license)
|
- [License](#license)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- __minimal size:__ weighing under `8kb`, `choo` is a tiny little framework
|
- __minimal size:__ weighing under `8kb`, `choo` is a tiny little framework
|
||||||
@@ -116,7 +116,9 @@ document.body.appendChild(tree)
|
|||||||
## Effects
|
## Effects
|
||||||
Side effects are done through `effects` declared in `app.model()`. Unlike
|
Side effects are done through `effects` declared in `app.model()`. Unlike
|
||||||
`reducers` they cannot modify the state by returning objects, but get a
|
`reducers` they cannot modify the state by returning objects, but get a
|
||||||
callback passed which is used to emit `actions` to handle results.
|
callback passed which is used to emit `actions` to handle results. Use effects
|
||||||
|
every time you don't need to modify the state object directly, but wish to
|
||||||
|
respond to an action.
|
||||||
|
|
||||||
A typical `effect` flow looks like:
|
A typical `effect` flow looks like:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user