Skip to content

Consider that Rails supports component driven development with ViewComponent #55

@nickserv

Description

@nickserv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions