How Ruby and Web Components Can Work Together | Fullstack Ruby
06-Jan-2022 1788
As a follow up to my recent podcast all about componentized view architecture, I thought it would be worthwhile to share some real-world code examples from various projects I’ve worked on so you can get a sense of what I’m talking about.As you’ll soon discover, many of the Ruby view components I write tend to wrap around web components—either ones I’ve written or from third-party libraries. A web component is technically a custom HTML element, paired with some combination of JavaScript and optionally CSS which affects the styling and behavior of the element. For example, instead of writing HTML for a “badge” like this (example from Bootstrap):.
How Ruby and Web Components Can Work Together | Fullstack Ruby #ruby #rubydeveloper #rubyonrails #Components #Together #Fullstack #web https://rubyonrails.ba/link/how-ruby-and-web-components-can-work-together-fullstack-ruby