Skip to content

Commit 57a9231

Browse files
committed
Merge branch 'master' into typescript
2 parents db169a4 + 0789c4f commit 57a9231

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api/createReducer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const todosReducer = createReducer([], {
8484
[addTodo]: (state, action) => {
8585
// This push() operation gets translated into the same
8686
// extended-array creation as in the previous example.
87+
const todo = action.payload
8788
state.push(todo)
8889
},
8990
[toggleTodo]: (state, action) => {

0 commit comments

Comments
 (0)