view_component
A framework for building reusable, testable & encapsulated view components in Ruby on Rails. (by ViewComponent)
stimulus_reflex
Build reactive applications with the Rails tooling you already know and love. (by hopsoft)
Our great sponsors
view_component | stimulus_reflex | |
---|---|---|
74 | 45 | |
3,145 | 2,199 | |
1.2% | 0.9% | |
9.0 | 7.5 | |
1 day ago | 13 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
view_component
Posts with mentions or reviews of view_component.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-01.
- Things I wish I knew before moving 50K lines of code to React Server Components
-
Supercharged table component built with ViewComponent
When searching for examples of table components built with the ViewComponent gem, I was surprised to find none. After some inquiries, I came across examples that worked like this:
-
More expressive APIs for View Components
View components offer two primary ways to interact with the component: passing arguments to the initializer and using slots:
- Have you been using ViewComponent. What advantages do you see in it?
-
How can I integrate VueJS into a rails 7 application? What is the workflow?
For example, splitting out views into partials? Or the new ViewComponent feature that's becoming quite popular - https://viewcomponent.org/
- Helpers vs Components
-
Vanilla Rails view components with partials | Stanko K.R.
I used to do "pure ruby" approach to that -- but basically wound up realizing I was re-inventing github's view_component. Their design goals were similar enough to what I was trying to do, that it made more sense just to use that, rather than try to re-invent it myself.
-
Gnarly Learnings from March 2023
ViewComponent
- Os benefícios de componentizar as views do Rails
-
Does anyone kind of miss simpler webpages?
The linked one is my Rails implementation, written for ViewComponent. The official version uses Nunjucks.
stimulus_reflex
Posts with mentions or reviews of stimulus_reflex.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-29.
-
Coming to grips with JS: a Rubyist's deep dive
Then there are stack-specific libraries: StimulusReflex for Rails, Phoenix LiveView, Laravel Livewire, Unicorn and Tetra for Django, Blazor for .NET, … and the list goes on.
- Почему я программирую на Ruby
-
RailsWorld 2023: Hotwire Edition
Morphing and the concept to do refreshes after broadcast are hardly new. Stimulus Reflex has employed morphing to update the page for years, and CableReady::Updatable, which allows listening to model requests for refreshes, has also been around for a while. But I am excited to see these concepts being adopted in Turbo and becoming more mainstream.
-
Unicorn – A full-stack web framework for Django
Stimulus Reflex (Ruby), which predates Hotwire, also deserves a mention, though most of its momentum seemed to stall when Hotwire was announced.
-
Is there Ruby LiveView Framework?
Hi there, not crazy experienced on the topic but after some research i made for personal reasons i found https://mayu.live/ whick looks interesting (and as mentioned already https://docs.stimulusreflex.com/, seems to be close to Liveview)
-
Rails 7 - Turbo Frame and Turbo Stream
StimulusReflex Docs pretty easy to use and release 3.5.0 is coming soon.
-
Announcing elm-express
However, the timing may be a little off. In some ways, it feels like the "Express" way of developing for the backend is dying. We are seeing tools that blur the line between backend and frontend, trying to unify how we develop web applications. Tools like Phoenix LiveView, StimulusReflex, Laravel Livewire, Remix, Next.js, and many others are being developed.
-
Learning Ruby, Rails & Hotwire?
You can also learn Rails and StimulusReflex
-
A powerful search feature with what Rails provides out of the box
Reading the article and the source code, I learned a ton of stuff, as always. In his implementation, Louis is using StimulusReflex (built on top of Stimulus) to achieve this. I was curious about several points:
-
The Ultimate Search for Rails - Episode 1
Now that we know that our backend is working as it should, let’s wire up our stuff. I’m gonna skip on Stimulus Reflex setup and configuration and dive right in. You can easily follow the official setup or, if you use import-maps, follow @julianrubisch’s article on the topic. I also know that leastbad has been working on an automatic installer that detects your configuration and sets everything up for you if you care to try it before the next version of SR gets released.
What are some alternatives?
When comparing view_component and stimulus_reflex you can also consider the following projects:
Stimulus - A modest JavaScript framework for the HTML you already have
hotwire-rails - Use Hotwire in your Ruby on Rails app
turbo-rails - Use Turbo in your Ruby on Rails app
turbo - The speed of a single-page web application without having to write any JavaScript
Tailwind CSS - A utility-first CSS framework for rapid UI development.
jsbundling-rails - Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
cypress-rails - Helps you write Cypress tests of your Rails app
hotwire-livereload - Live reload gem for Hotwire Rails apps.
i18n-tasks - Manage translation and localization with static analysis, for Ruby i18n
webtransport - WebTransport is a web API for flexible data transport
view_component vs Stimulus
stimulus_reflex vs hotwire-rails
view_component vs turbo-rails
stimulus_reflex vs turbo
view_component vs Tailwind CSS
stimulus_reflex vs jsbundling-rails
view_component vs cypress-rails
stimulus_reflex vs hotwire-livereload
view_component vs hotwire-rails
stimulus_reflex vs Stimulus
view_component vs i18n-tasks
stimulus_reflex vs webtransport