Re: [w3c/webcomponents] Template/part proposals should explain how and why they improve performance (#901)

Yes, the developer marking up the DOM tree with `parts` have to know its structure. But someone else could be doing the cloning and updates.

For example: we can have a template that represent a row inside a `<my-table>` component. The table author can markup this row template with `parts`. The user of this component can just clone this template with parts and updates them. It allows better encapsulation because there's no need to expose a list of clonedReferences.
 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/901#issuecomment-719017348

Received on Thursday, 29 October 2020 20:57:32 UTC