How to create Custom Elements with Web Components

Originally appeared on GoRails Screencasts.

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.


Go to Source of this post
Author Of this post:
Title Of post: How to create Custom Elements with Web Components
Author Link: {authorlink}