Creating a Custom Element from Scratch

added by JavaScript Kicks
3/20/2019 2:00:22 PM


In the last article, we got our hands dirty with Web Components by creating an HTML template that is in the document but not rendered until we need it. Next up, we're going to continue our quest to create a custom element version of the dialog component below which currently only uses HTMLTemplateElement: See the Pen Dialog with template with script by Caleb Williams (@calebdwilliams) on CodePen.