2025 Rails frontend solution: Phlex or ViewComponents?
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.