Simon Willison: TILs on web-components

web-components Understanding Kristofer Joseph's Single File Web Component - 2021-10-27

Via Brian LeRoux I found single-file-web-component.html by Kristofer Joseph. It's really clever! It demonstrates how to build a <hello-world></hello-world> custom Web Component in a single HTML file, using some neat tricks. …