Our great sponsors
-
view_component
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Phlex is great for all the reasons in these replies. I’m going all-in on it and building a Rails view layer that runs 100% from Phlex. You can read more about it at https://fly.io/ruby-dispatch/component-driven-development-on-rails-with-phlex/ and see the demo repo at https://github.com/rocketshipio/oxidizer-demo
Rails 7.1 will have the ability to declare partials inputs. https://github.com/rails/rails/pull/45602
One nice feature of view component or phlex is slot. Just to mention it here. Nice_partials gem allow us to do just that saying in the rails way. https://github.com/bullet-train-co/nice_partials
Related posts
- Rendering view components with Turbo Stream broadcasts
- Green Vs. Brown Programming Languages ("Ruby is a better language now than it was then. Yet now it is dreaded. Part of the difference, it seems to me, is that now people have 14 years’ worth of rails apps to maintain.")
- Building lightweight components with Rails `helpers` and StimulusJS
- GitHub Incident with Issues, API Requests and Pull Requests
- Client side Git hooks 101