This generator will install HyperReact and Opal in Rails 4.x or 5.x
In your Gemfile
gem "hyper-rails"then
bundle install
rails g hyperloop:install
bundle updateThis generator can also create HyperReact components.
rails g hyperloop:component Home::ClockWhich will make the component Home::Clock in  app/views/components/home/clock.rb
You can render a component directly from a controller:
class HomeController < ApplicationController
  def clock
    render_component
  end
endOr from a view:
<%= react_component('Home::Clock') %>See ruby-hyperloop.io for further examples.
