counter (using a data attribute)
html
<button data-count="0" data-s="up" data-r="up">
start counting
</button>
javascript
export const b = {};
export function up(_, __, el) {
el.setProp("count", el.propAsInt("count") + 1);
el.innerHTML = el.prop("count");
}