View Component Reflex
ViewComponentReflex allows you to write reflexes right in your view component code.
Used 81 times
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/X8BsRD"
Template Source
Review the code before running this template on your machine.
# Install ViewComponent rails_command "app:template LOCATION='https://railsbytes.com/script/VMys6p'" # Install StimulusReflex rails_command "app:template LOCATION='https://railsbytes.com/script/VMysyV'" # Install ViewComponentReflex run 'bundle add view_component_reflex' run 'bundle'