Update args in examples/vanilla to 3.0 (#170)

This commit is contained in:
Tim Wisniewski
2016-07-14 06:26:16 -04:00
committed by GitHub
parent a1795c29ee
commit 3434d681a4
+4 -4
View File
@@ -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>