Some spelling & typo fixes in readme (#688)

* fix typo

* spelling corrections

* update preposition to > from
This commit is contained in:
İsmail Demirbilek
2018-10-25 12:35:02 +02:00
committed by Yoshua Wuyts
parent d6f6ddb884
commit f5f8ccf0cb
+3 -3
View File
@@ -214,7 +214,7 @@ The new route will be a previous entry in the browser's history stack, and
immediately afterward the`'navigate'` and `'render'`events will be emitted.
Similar to [history.popState](http://devdocs.io/dom_events/popstate). (Note
that `emit('popState')` will _not_ cause a popState action - use
`history.go(-1)` for that - this is different to the behaviour of `pushState`
`history.go(-1)` for that - this is different from the behaviour of `pushState`
and `replaceState`!)
### `'DOMTitleChange'`|`state.events.DOMTITLECHANGE`
@@ -262,7 +262,7 @@ An object _recommended_ to use for local component state.
### `state.cache(Component, id, [...args])`
Generic class cache. Will lookup Component instance by id and create one if not
found. Usefull for working with statefull [components](#components).
found. Useful for working with stateful [components](#components).
## Routing
Choo is an application level framework. This means that it takes care of
@@ -429,7 +429,7 @@ app.use(function (state, emitter) {
When working with stateful components, one will need to keep track of component
instances `state.cache` does just that. The component cache is a function
which takes a component class and a unique id (`string`) as it's first two
arguments. Any following arguments will be forwarded to the component contructor
arguments. Any following arguments will be forwarded to the component constructor
together with `state` and `emit`.
The default class cache is an LRU cache (using [nanolru][nanolru]), meaning it