Skip to content

Commit 42a5c96

Browse files
committed
Tiny style fixes
1 parent 57e2da4 commit 42a5c96

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/basics/DataFlow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The data lifecycle in any Redux app follows these 4 steps:
1818
{ type: 'ADD_TODO', text: 'Read the Redux docs.'};
1919
```
2020

21-
Think of an action as a very brief snippet of news. “Mary liked article 42.” or “'Read the Redux docs.' was added to the list of todos.”
21+
Think of an action as a very brief snippet of news. “Mary liked article 42.” or “Read the Redux docs. was added to the list of todos.”
2222

2323
You can call [`store.dispatch(action)`](../api/Store.md#dispatch) from anywhere in your app, including components and XHR callbacks, or even at scheduled intervals.
2424

docs/basics/Reducers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You’ll often find that you need to store some data, as well as some UI state,
3232
3333
## Handling Actions
3434

35-
Now that we've decided what our state object looks like, we're ready to write a reducer for it. The reducer is a pure function that takes the previous state and an action, and returns the next state.
35+
Now that weve decided what our state object looks like, were ready to write a reducer for it. The reducer is a pure function that takes the previous state and an action, and returns the next state.
3636

3737
```js
3838
(previousState, action) => newState

docs/basics/UsageWithReact.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Footer.propTypes = {
216216
};
217217
```
218218

219-
That's it! We can verify that they work correctly by writing a dummy `App` to render them:
219+
Thats it! We can verify that they work correctly by writing a dummy `App` to render them:
220220

221221
#### `containers/App.js`
222222

@@ -369,7 +369,7 @@ function select(state) {
369369
export default connect(select)(App);
370370
```
371371

372-
That's it! The tiny todo app now functions correctly.
372+
Thats it! The tiny todo app now functions correctly.
373373

374374
## Next Steps
375375

docs/introduction/Motivation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
As the requirements to JavaScript single-page applications get more sophisticated, **more state than ever before needs to be managed by the JavaScript code.** This state may include server responses, cached data, and data created locally, but not yet persisted to the server. It also includes the UI state, such as the active route, the selected tab, whether to show a spinner or pagination controls, and so on.
44

5-
Managing ever-changing state is hard. If a model can update another model, then a view can update a model that updates another model, and this, in turn, might cause another view to update. At some point you no longer know what happens in your app. **You no longer control when, why, and how the state is updated.** When the system is opaque and non-deterministic, it's hard to reproduce bugs or add new features.
5+
Managing ever-changing state is hard. If a model can update another model, then a view can update a model that updates another model, and this, in turn, might cause another view to update. At some point you no longer know what happens in your app. **You no longer control when, why, and how the state is updated.** When the system is opaque and non-deterministic, its hard to reproduce bugs or add new features.
66

77
As if this wasn’t bad enough, consider the **new requirements that are becoming common in front-end product development**, such as handling optimistic updates, rendering on the server, fetching the data before performing route transitions, and so on. We the front-end developers are finding ourselves surrounded by complexity we never had to deal with before. [Is it time we give up?](http://www.quirksmode.org/blog/archives/2015/07/stop_pushing_th.html)
88

docs/introduction/PriorArt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Unlike Redux, Elm is a language, so it is able to benefit from static typing for
2929

3030
Immutable and most similar libraries are orthogonal to Redux. Feel free to use them together!
3131

32-
**Redux doesn’t care *how* you store the stateit can be a plain object, an Immutable object, or anything else.** You’ll probably want a (de)serialization mechanism for writing universal apps and hydrating their state from the server, but other than that, you can use any data storage library *as long as it supports immutability*. For example, it doesn’t make sense to use Backbone for Redux state, because Backbone models are mutable.
32+
**Redux doesn’t care *how* you store the stateit can be a plain object, an Immutable object, or anything else.** You’ll probably want a (de)serialization mechanism for writing universal apps and hydrating their state from the server, but other than that, you can use any data storage library *as long as it supports immutability*. For example, it doesn’t make sense to use Backbone for Redux state, because Backbone models are mutable.
3333

3434
Note that, even if your immutable library supports cursors, you shouldn’t use them in a Redux app. The whole state tree should be considered read-only, and you should use Redux for updating the state, and subscribing to the updates. Therefore writing via cursor doesn’t make sense for Redux. **If your only use case for cursors is decoupling the state tree from the UI tree and gradually refining the cursors, you should look at selectors instead.** Selectors are composable getter functions. See [reselect](http://github.com/faassen/reselect) for a really great and concise implementation of composable selectors.
3535

@@ -61,6 +61,6 @@ function toObservable(store) {
6161

6262
Similarly, you can compose different asynchronous streams to turn them into actions before feeding them to `store.dispatch()`.
6363

64-
The question is: do you really need Redux if you already use Rx? Maybe not. It's not hard to [re-implement Redux in Rx](https://github.com/jas-chen/rx-redux). Some say it's a two-liner using Rx `.scan()` method. It may very well be!
64+
The question is: do you really need Redux if you already use Rx? Maybe not. Its not hard to [re-implement Redux in Rx](https://github.com/jas-chen/rx-redux). Some say its a two-liner using Rx `.scan()` method. It may very well be!
6565

6666
If you’re in doubt, check out the Redux source code (there isn’t much going on there), as well as its ecosystem (for example, [the developer tools](https://github.com/gaearon/redux-devtools)). If you don’t care too much about it and want to go with the reactive data flow all the way, you might want to explore something like [Cycle](http://cycle.js.org) instead, or even combine it with Redux. Let us know how it goes!

docs/introduction/ThreePrinciples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ let reducer = combineReducers({ visibilityFilter, todos });
8282
let store = createStore(reducer);
8383
```
8484

85-
That's it! Now you know what Redux is all about.
85+
Thats it! Now you know what Redux is all about.

0 commit comments

Comments
 (0)