Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on HTML Web Components. Parent comment
The shadow DOM provides two things:
- style encapsulation (as well as `id` attributes) - ability to use `<slot>` for templating
You should use it if you require one of the above or both.
There are no comments on this comment yet.
The shadow DOM provides two things:
- style encapsulation (as well as `id` attributes) - ability to use `<slot>` for templating
You should use it if you require one of the above or both.