The next few sections are going to be action-packed. We’ll be writing our very first component; first using HTML, then as a vanilla web component, and then using a library designed for easily writing web components.
That might sound very roundabout, but by understanding how web components work under the hood, you’ll be able to more readily pick up one of the many tools out there designed to write web components more easily.
For our first component, I’ve chosen the checkbox. It’s a great first component to write because the amount of markup required to write an accessible checkbox isn’t tremendous. It’s also a pattern that should be quite familiar to u