ComponentDriven / componentdriven.org

Static site and content for Component Driven

Home Page:https://www.componentdriven.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider that Rails supports component driven development with ViewComponent

nickmccurdy opened this issue · comments

Hi! I found the overview in this website pretty helpful, but I think the mention of Rails could be updated. While Rails has traditionally been more domain driven than component driven, GitHub wanted to experiment with having a similar experience to React in Rails views, so they created ViewComponent. While it's technically not part of Rails itself, GitHub still uses it in production, and it's possible to render ViewComponents like you'd normally render Views in other parts of Rails (like the system test framework).

Please consider:

  1. Either not mentioning Rails as a framework that doesn't support component driven reuse, or clarifying that ViewComponent can be used along with Rails
  2. Adding Rails or ViewComponent as a development tool

Note: There are technically other alternatives for Rails that integrate with existing component frameworks, like React Rails. However since we already mention frontend component frameworks, I don't think we need to mention specific integrations for them.