Re: [whatwg/dom] Proposal to improve the DOM creation api (#150)

I find it pretty bad to make string templates, as soon as it's on client-side, (and you more likely need to keep references, add/remove event listeners, ...

I'd really like that document.createElement become like React.createElement

and be able to do: (`const h=document.createElement`)

```
h('ul', {className:'something'},
  items.map( ({text})=> h('li', {onClick: e=>{}}, 
      text,
      h('span', {onClick: close}, '✕')
    )
  )
)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/150#issuecomment-239141375

Received on Thursday, 11 August 2016 12:01:08 UTC