small typo fix: model -> state

This commit is contained in:
Seth Vincent
2016-06-13 11:01:55 -07:00
committed by GitHub
parent 25fb0c1bdf
commit 7f9441a97f
+1 -1
View File
@@ -243,7 +243,7 @@ Outside the model they're called by `send('todos:add')` and
const app = choo()
app.model({
namespace: 'todos',
model: { todos: [] },
state: { todos: [] },
reducers: {
add: (state, action) => ({ todos: state.todos.concat(action.payload) })
}