const { html } = require('../') // title demo module.exports = { init: () => ({ model: 'my demo app' }), update: (model, action) => { switch (action.type) { case 'SET': return { model: action.payload, effect: action } default: return { model } } }, view: (model, dispatch) => html`