Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit a29a3a2

Browse files
committed
Element render uses Hyperloop::Component
1 parent 14091a7 commit a29a3a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/generators/reactive_ruby/test_app/test_app_generator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def configure_opal_rspec
6868
config.opal.dynamic_require_severity = :ignore
6969
config.opal.enable_specs = true
7070
config.opal.spec_location = 'spec-opal'
71+
config.hyperloop.auto_config = false
72+
7173
]
7274
end
7375
end

lib/react/ext/opal-jquery/element.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def self.[](selector)
1414

1515
define_method :render do |container = nil, params = {}, &block|
1616
if `#{self.to_n}._reactrb_component_class === undefined`
17-
`#{self.to_n}._reactrb_component_class = #{Class.new(React::Component::Base)}`
17+
`#{self.to_n}._reactrb_component_class = #{Class.new(Hyperloop::Component)}`
1818
end
1919
klass = `#{self.to_n}._reactrb_component_class`
2020
klass.class_eval do

0 commit comments

Comments
 (0)