Skip to content

Commit a71b2cf

Browse files
authored
Merge pull request reduxjs#1993 from maarekj/patch-1
Fix typo
2 parents d110b84 + 25658e5 commit a71b2cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/recipes/reducers/08-ReusingReducerLogic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function createCounterWithNamedType(counterName = '') {
4848

4949
function createCounterWithNameData(counterName = '') {
5050
return function counter(state = 0, action) {
51-
const {name = action};
51+
const {name} = action;
5252
if(name !== counterName) return state;
5353

5454
switch (action.type) {
@@ -129,4 +129,4 @@ const rootReducer = combineReducers({
129129
```
130130
131131
132-
These basic patterns allow you to do things like having multiple instances of a smart connected component within the UI, or reuse common logic for generic capabilities such as pagination or sorting.
132+
These basic patterns allow you to do things like having multiple instances of a smart connected component within the UI, or reuse common logic for generic capabilities such as pagination or sorting.

0 commit comments

Comments
 (0)