Imagine you had a chat, and 30 videos in the chat.
30 play buttons 30 vulume sliders 30 pause buttons Etc
That's a lot in the DOM.
So intead you put the html5 video player components in shadowDOM and reference as needed. Only have them once then.
30 play buttons 30 vulume sliders 30 pause buttons Etc
That's a lot in the DOM.
So intead you put the html5 video player components in shadowDOM and reference as needed. Only have them once then.
Is the state separated from structure ?