3 ms·
And custom elements provide a way to actually create, well, your own DOM elements. Libraries like React provide their own "fake" components that are only usable
by floatboth 9y ago
And custom elements provide a way to actually create, well, your own DOM elements. Libraries like React provide their own "fake" components that are only usable from within the libraries. With Custom Elements you can actually provide a DOM API for your element, that can be used from plain JS.
And HTML Imports provide deduplication. They're a solution to the "I have four copies of jQuery on my page" problem.