Merge pull request #354 from meetzaveri/patch-2

Update redux.md
This commit is contained in:
Rico Sta. Cruz 2018-01-17 17:03:15 +08:00 committed by GitHub
commit e556b57688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@
title: Redux
category: React
layout: 2017/sheet
updated: 2017-08-30
updated: 2018-01-17
weight: -3
---
@ -137,6 +137,16 @@ export default connect(
Same as above, but shorter.
### Combining reducers
```js
const reducer = combineReducers({
counter, user, store
})
```
Combines multiple reducers into one reducer function. See: [combineReducers](https://redux.js.org/docs/api/combineReducers.html) _(redux.js.org)_
## Middleware
### Signature