Skip to content

Commit

Permalink
Missing pseudo code added (reduxjs#2712)
Browse files Browse the repository at this point in the history
sametcodes authored and timdorr committed Nov 13, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent e6a15f2 commit ef2ce0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/basics/Reducers.md
Original file line number Diff line number Diff line change
@@ -241,6 +241,9 @@ function todoApp(state = initialState, action) {
visibilityFilter: action.filter
})
case ADD_TODO:
return Object.assign({}, state, {
todos: todos(state.todos, action)
})
case TOGGLE_TODO:
return Object.assign({}, state, {
todos: todos(state.todos, action)

0 comments on commit ef2ce0e

Please sign in to comment.