lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.1.5 vs lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.1.6
- old
+ new
@@ -1,10 +1,10 @@
require "ReactRenderAnywhere/version"
module ReactRenderAnywhere
def render_component(name, element, props:)
content_for(:javascripts) do
- render partial: "common/render_components", locals: { name: name, element: element, props: props }
+ render file: "lib/common/_render_components.haml", locals: { name: name, element: element, props: props }
end
content_tag(:div, nil, :class=>"react-render-anywhere", :id=>element)
end
end