How to create Custom Elements with Web Components (Example) | GoRails
17-Jun-2021 2587
Web Components are a great way to encapsulate Javascript logic around an element in your HTML. We'll explore how to create Custom Elements and see how Hotwire uses them for Turbo Stream actions.