diff --git a/README.md b/README.md index a62f966..60102e1 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ and derived state. # [property](./src/property.js) A `property` is a simple value store that can report when its value changes. It is good for wrapping -external values passed into a component so compute types can depend on them and only recompute -when these values change. It can also be used to receive events such as _window.onresize_ to always +external values passed into a component so compute types can depend on them and only recompute when +these values change. It can also be used to receive events such as _window.onresize_ to always provide the current viewport size. ## Usage @@ -174,7 +174,9 @@ const getToken = stream( ### Read ```js -if (await getToken()) { /* do stuff with the token */ } +if (await getToken()) { + /* do stuff with the token */ +} ``` Call it to receive the stored value, recomputing if necessary.