From 3434d681a496a362feb4ac3b50da58febba50e01 Mon Sep 17 00:00:00 2001 From: Tim Wisniewski Date: Thu, 14 Jul 2016 06:26:16 -0400 Subject: [PATCH] Update args in examples/vanilla to 3.0 (#170) --- examples/vanilla/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/vanilla/index.html b/examples/vanilla/index.html index cd93a66..e98fdef 100644 --- a/examples/vanilla/index.html +++ b/examples/vanilla/index.html @@ -13,13 +13,13 @@ count: 0 }, reducers: { - increment: (action, state) => ({count: state.count + 1}), - decrement: (action, state) => ({count: state.count - 1}) + increment: (data, state) => ({count: state.count + 1}), + decrement: (data, state) => ({count: state.count - 1}) } }) - const mainView = (params, state, send) => { - return choo.view` + const mainView = (state, prev, send) => { + return html`

Counter example