code: function(card) {
      return (
        <div>
          <ComponentWithSideEffects />
          <button onClick={() => card.setState(x => ({ n: x.n * 2 }))}>
            Double State
          </button>
        </div>
      );
    }
docs: resettable