Learn how to write better ViewComponent code
Ready to level up from partials? Here’s how to build and organize your frontend code with ViewComponents - the good, the bad and every learning from using them in in real-life apps.
-
Spacer Components introduced in ViewComponent 3.20
-
When to Use call, erb_template, or html.erb in Rails ViewComponents?
-
From Partials (and Helpers) to Embracing ViewComponent in Rails
-
Guide to Slots in Rails' ViewComponent
-
Why choose ViewComponent over Rails partials
-
Quicktips for ViewComponent with Tailwind CSS/Hotwire