Button Functionality

Permalink to "Button Functionality"

And now finally, add some click event listeners to give the buttons functionality!

rating-element.

Permalink to "rating-element."

In this step you:

Congratulations, you now have a fully-featured web component; try clicking on some buttons!

The bad news now is that the element definition is around 100 lines, the HTML file is 38 lines, and the code is quite verbose, imperative, and unreadable for such a simple component. This is where Lit comes in!