Writing a Lit Component


placeholder

This is a premium lesson.

Subscribe to get access to the entire course.

Sign up now

During the course so far you’ve built your very own vanilla web component. It looked great, but the web component syntax was a little verbose and you had to manage a lot of things yourself including:

There are a lot of details you need to worry about when writing web components. Fortunately, there are easier ways of writing web components. In this lesson I’m going to introduce Lit, a lightweight library that makes writing performant web components much easier.

Over the next couple of lessons, you’ll get familiar with Lit by migrating over your existing components.

What’s so great about Lit?

While there ar