view_component
A framework for building reusable, testable & encapsulated view components in Ruby on Rails. (by ViewComponent)
Our great sponsors
form-request-submit-polyfill | view_component | |
---|---|---|
1 | 74 | |
65 | 3,148 | |
- | 1.3% | |
0.0 | 9.0 | |
over 2 years ago | 3 days ago | |
JavaScript | 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.
form-request-submit-polyfill
Posts with mentions or reviews of form-request-submit-polyfill.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-15.
-
Filter, search, and sort tables with Rails and Turbo Frames
Note that requestSubmit needs a polyfill for support on Safari and IE11. As an alternative to requestSubmit, if you are using Rails/ujs in your application, Rails.fire(this.formTarget, 'submit') works without a polyfill.
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.
What are some alternatives?
When comparing form-request-submit-polyfill and view_component you can also consider the following projects:
turbo-rails - Use Turbo in your Ruby on Rails app
Stimulus - A modest JavaScript framework for the HTML you already have
core-js - Standard Library
kredis - Higher-level data structures built on Redis
Tailwind CSS - A utility-first CSS framework for rapid UI development.
Formna - Formna is a package which vanilla js developers can implement realtime form validation without much effort
cypress-rails - Helps you write Cypress tests of your Rails app
turbo - The speed of a single-page web application without having to write any JavaScript
hotwire-rails - Use Hotwire in your Ruby on Rails app
player_sorting_frames
i18n-tasks - Manage translation and localization with static analysis, for Ruby i18n
form-request-submit-polyfill vs turbo-rails
view_component vs Stimulus
form-request-submit-polyfill vs core-js
view_component vs turbo-rails
form-request-submit-polyfill vs kredis
view_component vs Tailwind CSS
form-request-submit-polyfill vs Formna
view_component vs cypress-rails
form-request-submit-polyfill vs turbo
view_component vs hotwire-rails
form-request-submit-polyfill vs player_sorting_frames
view_component vs i18n-tasks