Update args in examples/vanilla to 3.0 (#170)
This commit is contained in:
@@ -13,13 +13,13 @@
|
|||||||
count: 0
|
count: 0
|
||||||
},
|
},
|
||||||
reducers: {
|
reducers: {
|
||||||
increment: (action, state) => ({count: state.count + 1}),
|
increment: (data, state) => ({count: state.count + 1}),
|
||||||
decrement: (action, state) => ({count: state.count - 1})
|
decrement: (data, state) => ({count: state.count - 1})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const mainView = (params, state, send) => {
|
const mainView = (state, prev, send) => {
|
||||||
return choo.view`
|
return html`
|
||||||
<main class="app">
|
<main class="app">
|
||||||
<h1>Counter example</h1>
|
<h1>Counter example</h1>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user