small typo fix: model -> state
This commit is contained in:
@@ -243,7 +243,7 @@ Outside the model they're called by `send('todos:add')` and
|
|||||||
const app = choo()
|
const app = choo()
|
||||||
app.model({
|
app.model({
|
||||||
namespace: 'todos',
|
namespace: 'todos',
|
||||||
model: { todos: [] },
|
state: { todos: [] },
|
||||||
reducers: {
|
reducers: {
|
||||||
add: (state, action) => ({ todos: state.todos.concat(action.payload) })
|
add: (state, action) => ({ todos: state.todos.concat(action.payload) })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user