4 ms·
In Webact I did a small tagged template literal with createContextualFragment. Very smooth. https://github.com/enjikaka/webact/blob/master/src/helpers.js#L75 h
by enjikaka 6y ago
In Webact I did a small tagged template literal with createContextualFragment. Very smooth.
https://github.com/enjikaka/webact/blob/master/src/helpers.js#L75 https://github.com/enjikaka/webact/blob/master/src/helpers.j...
https://github.com/enjikaka/webact/blob/master/src/helpers.js#L46 https://github.com/enjikaka/webact/blob/master/src/helpers.j...
html`<b>Hello world</b>`
returns a document fragment that you can just appendChild with. Super simple.