Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider that Rails supports component driven development with ViewComponent #55

Open
nickmccurdy opened this issue Jul 27, 2023 · 0 comments

Comments

@nickmccurdy
Copy link

nickmccurdy commented Jul 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant