Blog Post
Just add Code (Part 1)
Running code on a browser using Web Components is a good method that allows you to have a defined scope for your markup and logic. However, the usual examples mostly lead to the user staring at an empty page in the case where JavaScript isn’t enabled, because in most cases all markup is generated by JavaScript only. I will showcase two libraries that follow a different approach and easily allow the use of Web Components to follow the Progressive Enhancement approach and add additional functionality to existing markup. We will look at Hotwire stimulus first, and in a later installment, look at Github Catalyst.