🔰implementing components
browser ⟩ web components ⟩ implement
web components are implemented as a custom element that uses a <template> tag for efficiency and a shadow root for encapsulation.
Web components are implemented by three features of web browsers:
<template> - <template>
custom element - associate a JS classwith an HTML tag name.
shadow DOM - encapsulation.
Last updated