lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.2.1 vs lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.2.2

- old
+ new

@@ -1,16 +1,14 @@ require "ReactRenderAnywhere/version" module ReactRenderAnywhere - attr_accessor :build_name - def self.new(build_name:) @build_name = build_name self end def self.render_component(name, element, props:) - content_tag( + ActionController::Base.helpers.content_tag( :div, "<script> #{@build_name}.default.render({ component: '#{name}', props: #{props.to_json()},