Re:Show HN: Tiniest Web Component
by KTibow on Thursday March 28, 2024 @12:33AM
(#39847825)
Is there a good reason to use a shadow root for this instead of just directly setting innerText
[ Parent
| on HN ]
Only when you really want to encapsulate style or ensure GUI.
This should/could be part of a generic <app-footer) Web Component which ensures all that required is required.
We use a single <app-footer> for over 15 projects, it extracts domain namens to set the correct links.
Its value showed when we needed (basic) A/B tracking on all sites, we only had to edit this one <app-footer> file