example/datatypes.card.js
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);
      }
    );
  }
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);
      }
    );
  }
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 ) ; } ) ; }
dom-state
dom - state