Skip to content

Commit b8b596e

Browse files
seriousManualtimdorr
authored andcommitted
fix code example for generating reducers (#2899)
1 parent dd2844f commit b8b596e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/ReducingBoilerplate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ Let's write a function that lets us express reducers as an object mapping from a
505505

506506
```js
507507
export const todos = createReducer([], {
508-
[ActionTypes.ADD_TODO](state, action) {
508+
[ActionTypes.ADD_TODO]: (state, action) => {
509509
let text = action.text.trim()
510510
return [...state, text]
511511
}

0 commit comments

Comments
 (0)