Skip to content

Commit

Permalink
Missing pseudo code added (reduxjs#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcodes authored and timdorr committed Nov 13, 2017
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
Expand Up @@ -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)
Expand Down

0 comments on commit ef2ce0e

Please sign in to comment.