- From: Cyril Auburtin <notifications@github.com>
- Date: Thu, 11 Aug 2016 05:00:32 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Thursday, 11 August 2016 12:01:08 UTC
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