Skip to content

Commit 2eb5aea

Browse files
committed
Merge pull request reduxjs#623 from danmartinez101/docs-fix-typo
fix typo
2 parents 8272831 + 4cdb4c5 commit 2eb5aea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/advanced/Middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Middleware
22

3-
If you've used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you are familiar with a concept of *middleware*. In these frameworks, middleware is some code you can put between the framework receiving a request, and framework generating a response. For example, Express or Koa middleware may add CORS headers, logging, compression, and more. The best feature of middleware is that it’s composable in a chain. You can use multiple independent third-party middleware in a single project.
3+
If you've used server-side libraries like [Express](http://expressjs.com/) and [Koa](http://koajs.com/), you are familiar with the concept of *middleware*. In these frameworks, middleware is some code you can put between the framework receiving a request, and framework generating a response. For example, Express or Koa middleware may add CORS headers, logging, compression, and more. The best feature of middleware is that it’s composable in a chain. You can use multiple independent third-party middleware in a single project.
44

55
Redux middleware solves different problems than Express or Koa middleware, but in a conceptually similar way. **It provides a third-party extension point between dispatching an action, and the moment it reaches the store.** People use Redux middleware for logging, crash reporting, talking to an asynchronous API, routing, and more.
66

docs/basics/Actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ADD_TODO, REMOVE_TODO } from '../actionTypes';
2121

2222
>##### Note on Boilerplate
2323
24-
>You don’t have to define action type constants in a separate file, or even to define them at all. For a small project, it might be easier to just use string literals for action types. However, there are some benefits to explicitly declaring constants in larger codebases. Read [Reducing Boilerplate](../recipes/ReducingBoilerplate.md) for more practical tips on keeping your codebase clean.
24+
>You don’t have to define action type constants in a separate file, or even to define them at all. For a small project, it might be easier to just use string literals for action types. However, there are some benefits to explicitly declaring constants in larger codebases. Read [Reducing Boilerplate](../recipes/ReducingBoilerplate.md) for more practical tips on keeping your codebase clean.
2525
2626
Other than `type`, the structure of an action object is really up to you. If you’re interested, check out [Flux Standard Action](https://github.com/acdlite/flux-standard-action) for recommendations on how actions could be constructed.
2727

@@ -34,7 +34,7 @@ We’ll add one more action type to describe a user ticking off a todo as comple
3434
}
3535
```
3636

37-
It’s a good idea to pass as little data in action as possible. For example, it’s better to pass `index` than the whole todo object.
37+
It’s a good idea to pass as little data in each action as possible. For example, it’s better to pass `index` than the whole todo object.
3838

3939
Finally, we’ll add one more action type for changing the currently visible todos.
4040

0 commit comments

Comments
 (0)