diff --git a/README.md b/README.md index db851e4..4a80617 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ app.model({ namespace: 'todos', state: { items: [] }, reducers: { - add: (data, state) => ({ todos: state.items.concat(data.payload) }) + add: (data, state) => ({ items: state.items.concat(data.payload) }) } }) ```