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.

  1. Spacer Components introduced in ViewComponent 3.20
  2. When to Use call, erb_template, or html.erb in Rails ViewComponents?
  3. From Partials (and Helpers) to Embracing ViewComponent in Rails
  4. Guide to Slots in Rails' ViewComponent
  5. Why choose ViewComponent over Rails partials
  6. Quicktips for ViewComponent with Tailwind CSS/Hotwire