counterModule = store => {
store.on("@init", () => ({ count: 5, text: "hello" }))
store.on("more", ({ count, text }, char = "o") => ({
count: count + 1,
text: text + char,
}))
store.on("less", ({ count, text }) => ({
count: Math.max(count - 1, 0),
text: text.slice(0, count - 1),
}))
}