New Discussion

Notifications

You’re not receiving notifications from this thread.

2025 Rails frontend solution: Phlex or ViewComponents?

1
Gems / Libraries

I'm just wondering what everyone's opinions are on the two. I've always leaned into ViewComponents, but it seems like Phlex is on the come up. What has everyone's experience been with the two as of late?

Side note, I'm a big fan of inertiajs (and wish it was something more considered by the Rails team), however, I am trying to stay closer to Rails and Ruby rather than React, Vue, Svelte etc.

I think Phlex or View Component is mostly personal preference. Phlex will be all Ruby and View Component can be a mix of Ruby classes, ERB, and sidecar Stimulus controllers contained in the same folder. Either way you go they're pretty similar.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 88,440+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.