This is Karax
    
    
    buildHtml(tdiv):
      button:
        text "Say hello!"
        proc onclick(ev: Event; n: VNode) =
          lines.add "Hello simulated universe"
      for x in lines:
        tdiv:
          text x
    
    
    Run

This is JS (CoffeeScript) with [simple 
implementation](https://gist.github.com/al6x/501c12fa9053b425aad276fe422acf6b)
    
    
    render = (lines) ->
      @button ->
        @text "Say hello!"
        @onclick (e) ->
          lines.add "Hello simulated universe"
      for x in lines
        @div ->
          @text x
    
    
    Run

Reply via email to