Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix code example for generating reducers
  • Loading branch information
seriousManual authored Mar 22, 2018
commit 969b0b0e37e873fb390aadc6a40f5fb625e832e0
2 changes: 1 addition & 1 deletion docs/recipes/ReducingBoilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ Let's write a function that lets us express reducers as an object mapping from a

```js
export const todos = createReducer([], {
[ActionTypes.ADD_TODO](state, action) {
[ActionTypes.ADD_TODO]: (state, action) => {
let text = action.text.trim()
return [...state, text]
}
Expand Down