Skip to content

Commit

Permalink
Fix composeMiddleware example
Browse files Browse the repository at this point in the history
See reduxjs#213 for explanation
  • Loading branch information
acdlite committed Jul 4, 2015
1 parent 57bd10d commit 5fc55ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ Or using the provided `composeMiddleware()` utility:
```js
import { composeMiddleware } from 'redux';

// All are equivalent:
// Equivalent:
middleware1(middleware2(dispatch))(action)
composeMiddleware(middleware1, middleware2)(dispatch)(action)
composeMiddleware(middleware1, middleware2, dispatch)(action)
```

Expand Down

0 comments on commit 5fc55ad

Please sign in to comment.