code: function(card) {
      return devboard.DOMNode(
        function render(node) {
          node.innerHTML = (
            '<button>I can count to: ' +
            card.state +
            '</button>'
          );
          node.onclick = () => card.setState(n => n + 1);
        }
      );
    }
docs: dom-state