View Component Reflex

ViewComponentReflex allows you to write reflexes right in your view component code.
Icons/chart bar
Used 29 times
Created by
k kieran Klaassen

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'
Comments

Sign up or Login to leave a comment.