From 14bf553e66bdb40f6702601869079a46b2a9c1a7 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Wed, 11 May 2016 13:52:31 +0700 Subject: [PATCH] docs: bump --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c9f7b95..cb4fa19 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ const app = choo() app.model('title', { state: { title: 'my-demo-app' }, reducers: { - update: (action, state) => ({ title: action.payload }) + 'update': (action, state) => ({ title: action.payload }) }, effects: { - update: (action, state) => (document.title = action.title) + 'update': (action, state, send) => (document.title = action.title) } }) -const mainView = choo.view((state, send) => ` +const mainView = (params, state, send) => choo.view`

${state.title}

@@ -40,14 +40,14 @@ const mainView = choo.view((state, send) => ` placeholder=${state.title} oninput=${(e) => send('title:update', { payload: e.target.value })}>
-`) +` app.router((route) => [ route('/', mainView) ]) const node = app.start() -document.appendChild(node) +document.body.appendChild(node) ``` ## Concepts