Hacker News new | ask | show | jobs
by vlunkr 1207 days ago
I didn't know about ViewComponent until now, it looks more appealing to me than Rux. Dealing with transpilers is a necessary evil in JS land, I really don't want to bring that headache into my Ruby code.
2 comments

You can avoid transpiling if you write views in pure Ruby instead. Ruby syntax has everything you need to concisely represent all valid HTML — method calls are tags, keyword arguments are attributes and blocks are content.
ViewComponent is really cool, but still a little fresh. I'm excited to see how they update it in the coming year.
ViewComponent is years old, in large production deployments, and very stable.
We use it extensively at GitHub and consider it very stable.