Skip to content

Commit 5d88849

Browse files
krisaoemarkerikson
authored andcommitted
Docs: Fix createReducer example switch statement (#144)
The createReducer example included invalid switch statement syntax.
1 parent 69579fd commit 5d88849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/usage-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ function todosReducer(state = [], action) {
168168
completed : !todo.completed
169169
};
170170
});
171-
} ,
172-
"REMOVE_TODO" : (state, action) => {
171+
}
172+
case "REMOVE_TODO": {
173173
return state.filter( (todo, i) => i !== action.payload.index)
174174
}
175175
default : return state;

0 commit comments

Comments
 (0)