2 ms·
The tag syntax looks like the biggest advantage over ES6. Couldn't ES6 do that though as a template string type? -- like dom`<div> ${contents} </div>` As
by abecedarius 11y ago
The tag syntax looks like the biggest advantage over ES6. Couldn't ES6 do that though as a template string type? -- like
dom`<div> ${contents} </div>`
As far as I can tell on a quick google, this remains to be done. (I saw some hits for HTML string templates as opposed to direct DOM construction.)