DEV Community

Discussion on: Rails to Introduce View Components

Collapse
 
ben profile image
Ben Halpern

We’ve been running a variant of this patch in production at GitHub since March, and now have about a dozen components used in over a hundred call sites.

I love being on the same stack as GitHub now that they are caught up in versions and actively committing upstream. GitHub (e.g. Microsoft) being a Rails shop is huge for the space.

Regarding this feature, it's kind of like view helpers meets partials and much more performant?

Looks neat. I'm mildly worried about too many ways to do the same thing creep, but overall a plus.

Collapse
 
omrisama profile image
Omri Gabay

Repeating yourself? In Rails? No way lol DHH would never merge that

Collapse
 
dmerand profile image
Donald Merand

I have the same concern about diluting the existing approach. On the other hand I've hand-rolled component-like behavior and conventions in partials enough times that maybe it makes sense to have such a feature built-in (and with a nice testing framework).