Re:Rux: A JSX-inspired way to render view components in Ruby
by vlunkr on Monday March 06, 2023 @04:22PM
(#35047789)
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.
[ Parent
| on HN ]
Re:Rux: A JSX-inspired way to render view components in Ruby
by FigurativeVoid on Monday March 06, 2023 @04:42PM
(#35048070)
ViewComponent is really cool, but still a little fresh. I'm excited to see how they update it in the coming year.
Re:Rux: A JSX-inspired way to render view components in Ruby
by craigmcnamara on Tuesday March 07, 2023 @12:05AM
(#35051796)
ViewComponent is years old, in large production deployments, and very stable.
Re:Rux: A JSX-inspired way to render view components in Ruby
by camertron on Wednesday March 08, 2023 @01:12PM
(#35072575)
We use it extensively at GitHub and consider it very stable.
Re:Rux: A JSX-inspired way to render view components in Ruby
by joeldrapper on Monday March 06, 2023 @04:49PM
(#35048172)
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.