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 production.
- 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